The SDK now extracts all gen_ai spans out of a transaction and sends them as v2 envelope items by default. This prevents gen_ai spans from being dropped when the transaction payload exceeds size limits. Because they are no longer constrained by transaction size limits, AI message data is also no longer truncated. To keep the previous behavior, set stream_gen_ai_spans=False.
Self-hosted Sentry users should opt out with stream_gen_ai_spans=False, since streamed gen_ai spans may not be ingested by their Sentry instance.
Bug Fixes π
- (asyncpg) Use distinct span ops for cursor iteration and fetch to prevent N+1 false positives by @ericapisani in #6609
- (aiohttp) Gate url.full, url.path, url.query on send_default_pii by @ericapisani in #6650
- (asgi) Add url.path to ASGI request span attributes by @ericapisani in #6652
- (boto3) Gate url.full, url.query, url.fragment behind send_default_pii by @ericapisani in #6674
- (httpx) Gate url.full, url.query, and url.fragment behind send_default_pii by @ericapisani in #6668
- (httpx2) Gate url.full, url.query on send_default_pii by @ericapisani in #6670
- (langgraph) Ignore
GraphBubbleUpexceptions by @alexander-alderman-webb in #6608 - (litellm) Store span off-band, not in forwarded metadata by @jgreer013 in #6598
- (mcp) Support MCP SDK v2 handler signature and removed request_ctx by @ericapisani in #6583
- (pydantic-ai) Stop truncating in the streaming trace lifecycle by @alexander-alderman-webb in #6659
- (pymongo) Add db.query.text to streamed query spans by @ericapisani in #6637
- (pyreqwest) Gate url.full, url.query, url.fragment on send_default_pii by @ericapisani in #6673
- (sanic) Gate url.full, url.path, and http.query behind send_default_pii by @ericapisani in #6663
- (starlette) Stop duplicating
scope["root_path"]in URLs by @alexander-alderman-webb in #6579 - (stdlib) Gate url.full and http.query behind send_default_pii by @ericapisani in #6666
- (tests) Fix flaky OTel propagator entry point test by @ericapisani in #6655
- (tornado) Gate url.full, url.path, url.query on send_default_pii by @ericapisani in #6664
- (wsgi) Gate url.full, url.path, and http.query behind send_default_pii by @ericapisani in #6654
- Stop unconditionally importing
contextvarsby @alexander-alderman-webb in #6625 - (.agents) Update project agent lockfiles by @ericapisani in #6662
Documentation π
- Add light/dark logos by @hwhsu1231 in #6627
- Fix typos by @juliosuas in #6602
Internal Changes π§
- (mcp) Pin mcp package to <2.0.0 while alphas are in flight by @ericapisani in #6687
- π€ Update test matrix with new releases (06/29) by @github-actions in #6682
- Make
stream_gen_ai_spansopt out by @alexander-alderman-webb in #6658 - Remove
setuptoolsfromrequirements-testing.txtby @alexander-alderman-webb in #6618 - Remove
executingfromrequirements-testing.txtby @alexander-alderman-webb in #6619 - Remove
asttokensfromrequirements-testing.txtby @alexander-alderman-webb in #6615 - Remove
responsesfromrequirements-testing.txtby @alexander-alderman-webb in #6621 - Remove
pytest-forkedfromrequirements-testing.txtby @alexander-alderman-webb in #6611 - Remove
dockerfromrequirements-testing.txtby @alexander-alderman-webb in #6616 - Add
--skip-version-updateoption topopulate_tox.pyby @alexander-alderman-webb in #6675 - Remove
httpcorefromrequirements-testing.txtby @alexander-alderman-webb in #6622 - Remove
pytest-timeoutfromrequirements-testing.txtby @alexander-alderman-webb in #6613 - Remove
pytest-localserverfromrequirements-testing.txtby @alexander-alderman-webb in #6612 - Remove
jsonschemafromrequirements-testing.txtby @alexander-alderman-webb in #6620 - Remove
socksiofromrequirements-testing.txtby @alexander-alderman-webb in #6617 - Remove
pysocksfromrequirements-testing.txtby @alexander-alderman-webb in #6623 - Remove
brotlifromrequirements-testing.txtby @alexander-alderman-webb in #6614 - Remove
tomlifromrequirements-testing.txtby @alexander-alderman-webb in #6630 - Remove
pytest-watchfromrequirements-testing.txtby @alexander-alderman-webb in #6624 - Remove
pipfromrequirements-testing.txtby @alexander-alderman-webb in #6629 - π€ Update test matrix with new releases (06/22) by @github-actions in #6610
- Pin test dependencies including package extras by @alexander-alderman-webb in #6607
- π€ Update test matrix with new releases (06/15) by @github-actions in #6567
- Bump deps for test-lambda-locally by @sl0thentr0py in #6594
- Catch pkg_resource warning by @sl0thentr0py in #6595
Other
- (test): exclude django 6.1 alphas and betas from tox by @ericapisani in #6690
- (test): need to include the alpha tag for mcp package inclusion by @ericapisani in #6688