Promoted trace_lifecycle and ignore_spans to top-level tracing options. Fixed child span creation in streaming paths for HTTP clients, task queues, databases, web frameworks, and Django when no current span exists.
Sentry Python
Consumer spans for Huey, arq, dramatiq, and RQ now include the messaging.destination.name attribute. Also fixed a tracing bug where multiple sentry-trace headers were not choosing the first one, and a Django async middleware ValueError.
The SDK now extracts gen_ai spans out of transactions and sends them as v2 envelope items by default, preventing data loss when payloads exceed size limits. Self-hosted Sentry instances should opt out with stream_gen_ai_spans=False. Plus 19 bug fixes including PII gating for URLs across aiohttp, boto3, httpx, sanic, tornado, wsgi, and others, MCP SDK v2 handler support, and asyncpg N+1 false positive prevention.
Query string and client IP are now only captured when send_default_pii is enabled. Also fixed double wrapping of sync handlers on FastAPI >= 0.137, improved prefixed router path handling, removed reference cycles in the serializer, and removed 0000 trace_id fallbacks.
Added integration for aiomysql with manual setup via AioMySQLIntegration, and automatic out-of-the-box support for HTTPX2. Fixed control flow exception capture in arq, baggage header parsing with '=' characters, and functools.wraps restoration in rq patched functions.
String truncation is now disabled by default, allowing large strings in events to display in full; you can restore the previous limit of 100,000 characters via the max_value_length option. Fixed a serializer bug that was triggering side-effects from custom iter implementations on arbitrary sequences, and a memory leak in SentrySpanProcessor. Also includes fixes across Langchain, OpenAI Agents, Pydantic AI, Strawberry, and other integrations.
A new stream_gen_ai_spans option extracts GenAI spans from transactions and sends them as separate v2 envelope items, preventing them from being dropped when transaction payloads exceed size limits. Also adds asyncpg cursor span support, OpenAI conversation ID tracking, and fixes for OpenAI span handling and chunked HTTP response instrumentation.
New Features ✨
New Features ✨
New Features ✨
New Features ✨
New Features ✨
New Features ✨
This is an alpha release for internal testing.
New Features ✨
New Features ✨
Anthropic
- Record finish reasons in AI monitoring spans by @ericapisani in #5678
- Emit
gen_ai.chatspans for asynchronousmessages.stream()by @alexander-alderman-webb in…
This is an alpha release for internal testing.
New Features ✨
-
Add
set_attribute,remove_attributeto global API by @sentrivana in #5555You can now set and unset attributes on logs and metrics via top-level API. Think of it as
sentry_sdk.set_tag()…
This is an alpha release for internal testing.

