Changelog History
Page 1
-
v2.66.1 Changes
July 22, 2026๐ Bug Fixes ๐
Tracing
- ๐ Handle exceptions raised within traces_sampler and other callbacks by @ericapisani in #6853
Internal Changes ๐ง
- ๐ Fix flaky decorator test by @sl0thentr0py in #6830
-
v2.66.0 Changes
July 16, 2026๐ New Features โจ
- (tracing) Promote trace_lifecycle and ignore_spans to top-level options by @ericapisani in #6821
๐ Bug Fixes ๐
Tracing
- Skip child span creation in streaming path when no current span (HTTP clients) by @sentrivana in #6811
- Skip child span creation in streaming path when no current span (task queues) by @sentrivana in #6814
- Skip child span creation in streaming path when no current span (misc) by @sentrivana in #6815
- Skip child span creation in streaming path when no current span (databases) by @sentrivana in #6808
- ๐ Skip child span creation in streaming path when no current span (web frameworks) by @sentrivana in #6810
- Skip child span creation in streaming path when no current span (django) by @sentrivana in #6809
Internal Changes ๐ง
- ๐ฒ (logging) Fix flaky test_logging_captured_warnings by @ericapisani in #6824
- โ Remove flaky no cyclic garbage test by @alexander-alderman-webb in #6817
- โ Remove Claude permission settings by @cleptric in #6806
- ๐ Move
nullcontexttosentry_sdk.utilsby @sentrivana in #6805
-
v2.65.0 Changes
July 13, 2026๐ New Features โจ
Huey
- Set
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6779 - Set
messaging.destination.nameon producer spans by @alexander-alderman-webb in #6778
Other
- (arq) Set
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6767 - (dramatiq) Set
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6776 - (rq) Set
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6774
๐ Bug Fixes ๐
Tracing
- Take first sentry-trace header in case multiple are supplied by @sl0thentr0py in #6722
Other
- (django) Avoid
ValueErrorin async middlewareprocess_*hooks by @r0ro in #6698 - (scope) Drop None user attribute values in set_user by @ericapisani in #6692
- (starlette) Don't overwrite user set during request in AuthenticationMiddleware by @ericapisani in #6760
Internal Changes ๐ง
- ๐ฆ (mcp) Add package to the typing group by @alexander-alderman-webb in #6727
- ๐ฆ (starlette) Add package to typing group by @alexander-alderman-webb in #6728
- Add required
cache_write_tokensfield by @alexander-alderman-webb in #6804 - โ Pin extra test dependencies for generated test suites by @alexander-alderman-webb in #6696
- โ Add
pydanticto the typing group by @alexander-alderman-webb in #6730 - โ Add
python_multipartto the typing group by @alexander-alderman-webb in #6729 - ๐ ๐ค Update test matrix with new releases (07/06) by @github-actions in #6753
- โ Remove dependabot by @alexander-alderman-webb in #6720
- โก๏ธ Update Renovate config by @alexander-alderman-webb in #6716
- Stop inheriting secrets for
changelog-previewby @alexander-alderman-webb in #6723 - โ Stop inheriting secrets in tests by @alexander-alderman-webb in #6721
- ๐ง Configure Renovate by @renovate in #6701
- ๐ Move conversation ID tests to their own file by @sentrivana in #6699
- โ
Replace
requirements-testing.txtwith auvdependency group by @alexander-alderman-webb in #6693
- Set
-
v2.64.0 Changes
June 30, 20260๏ธโฃ The SDK now extracts all
gen_aispans out of a transaction and sends them as v2 envelope items by default. This preventsgen_aispans 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, setstream_gen_ai_spans=False.Self-hosted Sentry users should opt out with
stream_gen_ai_spans=False, since streamedgen_aispans 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
- 0๏ธโฃ (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
- 0๏ธโฃ (boto3) Gate url.full, url.query, url.fragment behind send_default_pii by @ericapisani in #6674
- 0๏ธโฃ (httpx) Gate url.full, url.query, and url.fragment behind send_default_pii by @ericapisani in #6668
- 0๏ธโฃ (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
- 0๏ธโฃ (pyreqwest) Gate url.full, url.query, url.fragment on send_default_pii by @ericapisani in #6673
- 0๏ธโฃ (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 - 0๏ธโฃ (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
- 0๏ธโฃ (tornado) Gate url.full, url.path, url.query on send_default_pii by @ericapisani in #6664
- 0๏ธโฃ (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
-
v2.63.0 Changes
June 16, 2026๐ Bug Fixes ๐
Fastapi
- ๐ Prevent double wrapping of sync handlers on FastAPI >= 0.137 by @jhonny-on in #6569
- Use effective_route_context path for prefixed routers by @ericapisani in #6572
Other
- 0๏ธโฃ (asgi) Gate query string and client IP behind send_default_pii by @ericapisani in #6501
- (serializer) Avoid creating reference cycles on every call by @Malkiz223 in #6563
- (user) Set
user.ip_addresson telemetry if present by @sentrivana in #6555 - โ Remove 0000 trace_id fallbacks by @sl0thentr0py in #6570
- โ MANIFEST.in: Graft tests directory. by @charlesroelli in #6237
Internal Changes ๐ง
- (fastapi) Verify request info capture with POST endpoints by @alexander-alderman-webb in #6287
- (starlette) Verify request info capture with POST endpoints by @alexander-alderman-webb in #6269
-
v2.62.0 Changes
June 08, 2026๐ New Features โจ
๐ Support HTTPX2 by @sentrivana in #6463
๐ Bug Fixes ๐
- (arq) Never capture control flow exceptions by @alexander-alderman-webb in #6507
- (client) Guard against dotless qualified_name in _setup_instrumentation by @devteamaegis in #6452
- (pydantic-ai) Only use hooks when
ModelRequestContext.modelexists by @alexander-alderman-webb in #6480 - โช (rq) Restore
functools.wraps()for patched functions by @alexander-alderman-webb in #6532 - (tracing_utils) Handle baggage values containing '=' in from_incoming_header by @devteamaegis in #6450
- (utils) Handle image_url string shorthand in _is_image_type_with_blob_content by @devteamaegis in #6478
Internal Changes ๐ง
- โ
(arq) Only pin
fakeredis<2.36.0in tests by @alexander-alderman-webb in #6444 - โ (flaky) Change env for flaky test detector by @sl0thentr0py in #6492
- ๐ (pydantic-ai) Create event loop before invoking sync methods by @alexander-alderman-webb in #6475
- ๐ฆ Use
package-ecosystem: uvin dependabot by @sentrivana in #6522 - ๐ ๐ค Update test matrix with new releases (06/08) by @github-actions in #6519
- โก๏ธ Raise minimum supported
aiomysqlversion and update text matrix by @alexander-alderman-webb in #6496 - ๐ Deprecate OpenTelemetryIntegration in favor of OTLPIntegration and no-op for span first by @sl0thentr0py in #6494
- ๐ ๐ค Update test matrix with new releases (06/03) by @github-actions in #6489
- โก๏ธ Raise
update-toxtimeout to 20 minutes by @alexander-alderman-webb in #6488 - ๐ Prevent
grpcio-toolssource builds when generating test matrices by @alexander-alderman-webb in #6487 - โ Add weekly flaky test detector workflow by @sl0thentr0py in #6484
- โ Pin transitive dependencies for tests on Python>=3.8 by @alexander-alderman-webb in #6437
- โก๏ธ Install uv in
update-toxjob by @alexander-alderman-webb in #6453 - โ
Only pin
setuptoolsin relevant tests by @alexander-alderman-webb in #6467
-
v2.61.1 Changes
June 01, 2026Internal Changes ๐ง
Rq
- โ
Pin
fakeredis<2.36.0in tests by @alexander-alderman-webb in #6454 - โ
Unpin
redisandfakeredisfor tests by @alexander-alderman-webb in #6443
Other
- (aiohttp) Unfurl spans explicitly instead of using pop() by @sentrivana in #6435
- (tox) Migrate from pip to uv via tox-uv by @sentry-junior in #6390
- ๐ Pin redis<8 for rq by @sl0thentr0py in #6438
- โ
Pin
-
v2.61.0 Changes
May 28, 2026๐ New Features โจ
Add
server.addressto transformed spans whenstream_gen_ai_spans=Trueby @alexander-alderman-webb in #6307๐ Allow integrations to define control flow exceptions by @sentrivana in #6425
0๏ธโฃ Disable string truncation for events by default by @alexander-alderman-webb in #6290
๐ Bug Fixes ๐
Langchain
- Stop setting transaction status when child span fails by @alexander-alderman-webb in #6301
- Catch
TypeErroronlangchain.agentsimport by @alexander-alderman-webb in #6268
Openai Agents
- ๐ Handle
starting_agentkeyword argument in runner patches by @ericapisani in #6428 - โ Remove hosted MCP tool spans by @alexander-alderman-webb in #6391
- ๐ Use
name, notdescriptioninstart_spanby @sentrivana in #6323 - Stop setting transaction status when child span fails by @alexander-alderman-webb in #6303
Pydantic AI
- Stop setting tokens on Invoke Agent spans by @alexander-alderman-webb in #6320
- Stop setting transaction status when child span fails by @alexander-alderman-webb in #6302
- Remove
Agent.run_stream_events()patch by @alexander-alderman-webb in #6281
Strawberry
- Wrap yields in try-except to ensure span cleanup by @ericapisani in #6381
- ๐ Fix
AttributeErrorongraphql_spaninresolveby @sentrivana in #6289
Other
(anthropic) Do not set
gen_ai.response.modeltoNoneby @alexander-alderman-webb in #6312(asyncpg) Use Sentry span attribute name conventions by @ericapisani in #6306
(boto3) Guard setting method by @sentrivana in #6288
(cohere) Stop setting transaction status when child span fails by @alexander-alderman-webb in #6300
(google-genai) Guard against
Noneresponse ID and response model by @alexander-alderman-webb in #6314(huey) Fix group and chord handling in enqueue by @ericapisani in #6392
(integrations) Auto-wrap root gen_ai spans for openai, cohere, langgraph, huggingface_hub by @constantinius in #6285
(serializer) Don't call
__iter__on arbitrary sequences by @sentrivana in #6304Memory leak in SentrySpanProcessor by @volodkindv in #6271
๐ Documentation ๐
- ๐ (celery) Remove duplicated "is" in
beat.pydocstring by @quyentonndbs in #6266
Internal Changes ๐ง
Langchain
- Deduplicate by removing
node.callspec.idmatching by @alexander-alderman-webb in #6426 - โ Remove
WatchedSpanclass by @alexander-alderman-webb in #6407
Openai Agents
- Deduplicate by removing
node.callspec.idmatching by @alexander-alderman-webb in #6424 - ๐ Fix asyncio loop missing for sync tests by @sl0thentr0py in #6412
Pydantic Ai
- Support
Agent.run_stream_events()returning a context manager by @alexander-alderman-webb in #6322 - โ Remove test without assertions by @alexander-alderman-webb in #6321
Other
- (openai) Deduplicate by removing
node.callspec.idmatching by @alexander-alderman-webb in #6427 - Respect context manager lifecycles in
fake_record_sql_queriesby @alexander-alderman-webb in #6295
-
v2.60.0 Changes
May 13, 2026Adds a new
stream_gen_ai_spansoption that controls howgen_aispans are
sent to Sentry. When set, the SDK extracts allgen_aispans out of a
transaction and sends them as v2 envelope items.๐ฐ Enable this option if
gen_aispans are being dropped because the transaction payload exceeds size limits.importsentry\_sdksentry\_sdk.init(dsn='https://examplePublicKey@o0.ingest.sentry.io/0',stream\_gen\_ai\_spans=True, )๐ New Features โจ
- ๐ (asyncpg) Add cursor span support via BaseCursor method patching by @ericapisani in #6252
- (integrations) Pass along the conversation ID for openai
responsescalls by @constantinius in #6199 - (wsgi,asgi) Introduce substitute values for filtered fields in span-streaming mode by @ericapisani in #6178
- Remove truncation when
stream_gen_ai_spansis enabled by @alexander-alderman-webb in #6260 - โ Add option to send GenAI spans in the new span format by @alexander-alderman-webb in #6079
๐ Bug Fixes ๐
Openai
- Guard against
choices=Noneby @cla7aye15I4nd in #6216 - Stop setting transaction status when child span fails by @alexander-alderman-webb in #6192
- Only finish relevant spans in Responses patches by @alexander-alderman-webb in #6191
- Only finish relevant spans in Chat Completions patches by @alexander-alderman-webb in #6190
Other
- (stdlib) Instrument response body read for chunked HTTP responses by @sentrivana in #6202
- (typing) Add
@sentry_sdk.traces.traceoverloads to fix typing by @sentrivana in #6236 - ๐ Use proto version 2 to fix backfilled user agent and IP by @sentrivana in #6256
- ๐ Make sure
http.serverspans are segments by @sentrivana in #6230 - ๐ Handle mypy 2.0 related failures by @alexander-alderman-webb in #6218
Internal Changes ๐ง
Django
- Check transaction annotations on transaction events by @alexander-alderman-webb in #6251
- โ Reload middleware on test teardown by @alexander-alderman-webb in #6249
Openai
- ๐ Separate sync and async embeddings patches by @alexander-alderman-webb in #6189
- ๐ Separate sync and async Responses patches by @alexander-alderman-webb in #6188
- ๐ Separate sync and async Chat Completions patches by @alexander-alderman-webb in #6187
Other
- (langchain) Inline global state by @alexander-alderman-webb in #6261
- (stdlib) Only capture relevant telemetry with
capture_items()by @alexander-alderman-webb in #6214 - (tests) Replace custom
envelopes_to_xhelpers withcapture_itemsby @sentrivana in #6233 - (traces) Cache valid span statuses in a module-level frozenset by @ericapisani in #6208
- Assert presence of profile chunks after session shutdown by @alexander-alderman-webb in #6213
- ๐ ๐ค Update test matrix with new releases (05/11) by @github-actions in #6247
- Make
set_custom_sampling_context()a classmethod by @alexander-alderman-webb in #6238 - Rename
_timestampto_end_timestampby @sentrivana in #6235 - ๐ Move batcher fork safety test to batcher tests by @sentrivana in #6225
- Introduce inline type check for whether a span is StreamedSpan by @ericapisani in #6180
- โ Add
botocore-stubsby @alexander-alderman-webb in #6203 - โ Add option to drop scrubbed user IP addresses by @juliosuas in #6241
- โ Add .warden to .gitignore by @ericapisani in #6210
- โ removed universal bdist_wheel option by @Muskaan436 in #6197
- ๐จ (transport) Add EnvelopePrinterTransport for debug logging by @ericapisani in #6181
-
v2.59.0 Changes
May 04, 2026๐ New Features โจ
Langchain
- Record
run_nameasgen_ai.function_idon Invoke Agent Spans by @alexander-alderman-webb in #5926 - Record
run_nameinon_tool_startby @alexander-alderman-webb in #5925 - Record
run_nameinon_chat_model_startby @alexander-alderman-webb in #5924
Other
- (ci) Cancel in-progress PR workflows on new commit push by @joshuarli in #5994
- โก๏ธ (consts) Add updated span convention constants to SPANDATA by @ericapisani in #6093
- ๐ (fastapi) Support span streaming in active thread tracking by @ericapisani in #6118
- (httpx) Migrate to span first by @ericapisani in #6084
- (huggingface_hub) Migrate to span first by @ericapisani in #6124
- (mcp) Migrate to span first by @ericapisani in #6131
- โ Add
db.driver.namespans to database integrations by @ericapisani in #6082
๐ Bug Fixes ๐
0๏ธโฃ We've put additional data that might contain sensitive information, like GraphQL documents, behind the
send_default_piioption.Httpx
- Consistently early-exit when adding request source by @alexander-alderman-webb in #6151
- Set
code.namespaceandcode.functioninstead ofcode.function.namein span streaming by @alexander-alderman-webb in #6150
Langchain
- Record
run_nameasgen_ai.function_idfor text completions by @alexander-alderman-webb in #6073 - Set agent name as
gen_ai.agent.namefor chat and tool spans by @alexander-alderman-webb in #5877
Other
- (asgi) Use
inspect.iscoroutinefunctionon Python 3.14+ by @alexander-alderman-webb in #6135 - ๐ (batcher) Reset lock and flusher in child after fork by @ericapisani in #6163
- (google_genai) Redact binary data in inline_data and fix multi-part message extraction by @ericapisani in #5977
- (grpc) Add isolation_scope to async server interceptor by @robinvd in #5940
- ๐ (metrics,logs) Don't attach
span_idif no active span by @sentrivana in #6162 - (monitor) Release
Monitor._thread_lockafter fork (#6148) by @vokracko in #6159 - (openai-agents) Resolve agent from
bindingsfor openai-agents >= 0.14 by @ericapisani in #6102 - (profiler) Stop nulling buffer on teardown by @ericapisani in #6075
- (quart) Use
inspect.iscoroutinefunctionwhen Quart does by @alexander-alderman-webb in #6133 - โก๏ธ (security) Prevent GitHub script injection in update-tox workflow by @fix-it-felix-sentry in #6171
- (starlette/fastapi) Use
inspect.iscoroutinefunctionwhen Starlette does by @alexander-alderman-webb in #6134 - (tornado) Make sure context manager doesn't double yield by @sentrivana in #6152
- Introduce
_get_current_streamed_span()to keep types backwards compatible by @alexander-alderman-webb in #6177
Internal Changes ๐ง
Stdlib
- Pin timestamps in
add_http_request_source()patch by @alexander-alderman-webb in #6160 - โ
Stop mocking
HTTPSConnection.sendin trace header tests by @alexander-alderman-webb in #6156
Other
- (batcher) Only flush the bucket that triggered the flush event by @sentrivana in #6168
- ๐ (celery) Remove unused
NoOpMgrfrom utils by @sentrivana in #6078 - โก๏ธ (ci) Update outdated pinned action version comments by @JoshuaMoelans in #6088
- โ (fastmcp) Span streaming tests by @alexander-alderman-webb in #6167
- โก๏ธ (graphql) Update document setting by @sentrivana in #6153
- ๐ (grpc) Mirror sync interceptor by @sentrivana in #6158
- ๐ (langchain) Separate test to remove conditional by @alexander-alderman-webb in #6076
- ๐ (pydantic-ai) Remove dead
Model.requestpatch by @alexander-alderman-webb in #5956 - โก๏ธ (queues) Update integrations by @sentrivana in #6157
- (tests) Replace deprecated
enable_tracingwithtraces_sample_rateby @sentrivana in #6077 - ๐ (transport) Remove redundant checks for dsn by @psh9508 in #6104
- ๐ Rename file by @sentrivana in #6194
- ๐ ๐ค Update test matrix with new releases (05/04) by @github-actions in #6186
- Assert presence of profile chunks after shutdown by @alexander-alderman-webb in #6174
- ๐ ๐ค Update test matrix with new releases (04/29) by @github-actions in #6173
- โก๏ธ Limit
update-toxaction to master branch by @alexander-alderman-webb in #6172 - Expand scrubbing by @sentrivana in #6161
- Remove Python 2 compat from qualname_from_function by @ericapisani in #6137
- ๐ Update test matrix with new releases (04/27) by @alexander-alderman-webb in #6146
- โ Raise shutdown timeout in aws lambda tests by @sentrivana in #6129
- โ Join thread in continuous profiler test by @alexander-alderman-webb in #6125
- ๐ ๐ค Update test matrix with new releases (04/20) by @github-actions in #6100
- Set explicit base-branch for codecov action by @ericapisani in #5992
- Record