|
4 | 4 |
|
5 | 5 | ### Various fixes & improvements |
6 | 6 |
|
| 7 | +- OTLPIntegration (#4877) by @sl0thentr0py |
| 8 | + |
| 9 | + Enable the new OTLP integration with the code snippet below, and your OpenTelemetry instrumentation will be automatically sent to Sentry's OTLP ingestion endpoint. |
| 10 | + |
| 11 | + ```python |
| 12 | + import sentry_sdk |
| 13 | + from sentry_sdk.integrations.otlp import OTLPIntegration |
| 14 | + |
| 15 | + sentry_sdk.init( |
| 16 | + dsn="<your-dsn>", |
| 17 | + # Add data like inputs and responses; |
| 18 | + # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info |
| 19 | + send_default_pii=True, |
| 20 | + integrations=[ |
| 21 | + OTLPIntegration(), |
| 22 | + ], |
| 23 | + ) |
| 24 | + ``` |
| 25 | + |
| 26 | + Under the hood, this will setup: |
| 27 | + - A `SpanExporter` that will automatically set up the OTLP ingestion endpoint from your DSN |
| 28 | + - A `Propagator` that ensures Distributed Tracing works |
| 29 | + - Trace/Span linking for all other Sentry events such as Errors, Logs, Crons and Metrics |
| 30 | + |
| 31 | + If you were using the `SentrySpanProcessor` before, we recommend migrating over to `OTLPIntegration` since it's a much simpler setup. |
| 32 | + |
| 33 | +- feat(integrations): implement context management for invoke_agent spans (#5089) by @constantinius |
| 34 | +- feat(loguru): Capture extra (#5096) by @sentrivana |
| 35 | +- feat: Attach `server.address` to metrics (#5113) by @alexander-alderman-webb |
7 | 36 | - fix: Cast message and detail attributes before appending exception notes (#5114) by @alexander-alderman-webb |
8 | 37 | - fix(integrations): ensure that GEN_AI_AGENT_NAME is properly set for GEN_AI spans under an invoke_agent span (#5030) by @constantinius |
9 | | -- test: add tests for either FastMCP implementation (#5075) by @constantinius |
10 | | -- feat: Attach `server.address` to metrics (#5113) by @alexander-alderman-webb |
| 38 | +- fix(logs): Update `sentry.origin` (#5112) by @sentrivana |
11 | 39 | - chore: Deprecate description truncation option for Redis spans (#5073) by @alexander-alderman-webb |
12 | 40 | - chore: Deprecate `max_spans` LangChain parameter (#5074) by @alexander-alderman-webb |
13 | | -- fix(logs): Update `sentry.origin` (#5112) by @sentrivana |
14 | 41 | - chore(toxgen): Check availability of pip and add detail to exceptions (#5076) by @alexander-alderman-webb |
15 | 42 | - chore: add MCP SDK Pydantic AI and OpenAI Agents to the list of auto enabled integrations (#5111) by @constantinius |
16 | | -- ci: 🤖 Update test matrix with new releases (11/17) (#5110) by @github-actions |
| 43 | +- test: add tests for either FastMCP implementation (#5075) by @constantinius |
17 | 44 | - fix(ci): Re-enable skipped tests (#5104) by @sentrivana |
18 | | -- Force coverage core ctrace for 3.14 (#5108) by @sl0thentr0py |
19 | | -- feat(integrations): implement context management for invoke_agent spans (#5089) by @constantinius |
20 | | -- feat(loguru): Capture extra (#5096) by @sentrivana |
21 | | -- OTLPIntegration (#4877) by @sl0thentr0py |
| 45 | +- ci: 🤖 Update test matrix with new releases (11/17) (#5110) by @github-actions |
| 46 | +- ci: Force coverage core ctrace for 3.14 (#5108) by @sl0thentr0py |
22 | 47 |
|
23 | 48 | ## 2.44.0 |
24 | 49 |
|
|
0 commit comments