Update dependency sentry-sdk to v2 - #347
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
June 15, 2025 08:06
9b6071e to
4a45efa
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
3 times, most recently
from
June 28, 2025 20:34
c08d902 to
4c62aa6
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
3 times, most recently
from
July 22, 2025 13:07
4a97cfe to
e2c8fa8
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
July 30, 2025 12:07
061d7ba to
910fa3e
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
August 14, 2025 18:00
910fa3e to
47bd7fd
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
August 26, 2025 14:41
47bd7fd to
58235f9
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
September 9, 2025 18:35
393a50d to
6e7b886
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
September 20, 2025 04:44
89f3923 to
cc2dba4
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
September 25, 2025 09:49
87dddcc to
fbca4d6
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
October 9, 2025 18:56
feac5f1 to
8e3b261
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
3 times, most recently
from
October 20, 2025 13:05
163b50e to
c765111
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
October 29, 2025 18:56
c765111 to
dcffea4
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
November 11, 2025 09:52
dcffea4 to
56611aa
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
November 24, 2025 10:08
094900b to
bb8b8c3
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
December 3, 2025 18:08
bb8b8c3 to
96bcb0f
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
December 21, 2025 20:53
1352b8a to
717341c
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
January 8, 2026 00:29
717341c to
6e4eaa6
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
March 2, 2026 17:47
0a5d068 to
0d12d00
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
March 17, 2026 17:19
e7ee340 to
4bc0ec3
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
March 26, 2026 18:44
cd814b6 to
9bc4af8
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
3 times, most recently
from
April 6, 2026 17:55
950df07 to
abefe42
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
April 13, 2026 21:14
abefe42 to
0e85e34
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
April 23, 2026 13:56
5b1e28d to
d96e56c
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
May 4, 2026 13:43
d96e56c to
29f7ab0
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
May 15, 2026 01:57
864a6bc to
26b1915
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
May 28, 2026 11:46
d97c6f2 to
8dedd6b
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
3 times, most recently
from
June 8, 2026 16:10
400946b to
aaa581b
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
June 16, 2026 19:13
aaa581b to
761d02a
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
July 4, 2026 13:37
394ad01 to
5e57678
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
July 13, 2026 11:54
830a802 to
5ceacf4
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
2 times, most recently
from
July 22, 2026 18:06
be938cd to
5d66d9e
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
July 29, 2026 15:48
5d66d9e to
9958188
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
August 10, 2026 14:00
9958188 to
4e0bef8
Compare
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
August 13, 2026 14:44
4e0bef8 to
e923943
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~1→~2.68.0Release Notes
getsentry/sentry-python (sentry-sdk)
v2.68.0Compare Source
Important
We're making
enable_logsandenable_metricsno-op with this release (#7177), and they'll be dropped in the next major.Previously,
enable_logsalso controlled automatic logs collection from the logging and Loguru integrations. These integrations now get an integration-levelcapture_sentry_logsboolean option to allow for more control over the auto-collection. These options areFalseby default, i.e., nothing is auto-collected without your explicit opt-in.Action Needed
If you had
enable_logsset toTrue:sentry_sdk.logger.XAPI, no action necessary, the API will just work.LoggingIntegrationorLoguruIntegration, the auto-collection will be turned off in this release. You can switch auto-collection on explicitly with:If you had
enable_logsset toFalse:sentry_sdk.logger.XAPI, you'll need to remove the calls entirely or define abefore_send_logcallback to filter out unwanted logs.If you has
enable_metricsset toFalse:before_send_metricor remove the calls to the API.Why We're Doing This
We recognize this is a disruptive change for some folks and want to make it clear this is a one-off. We're removing the options because they were an unnecessary hurdle that one had to jump through to be able to use logs and metrics, and it was confusing why the logging API would not just work on its own. On the other hand, we wanted to give you more fine-grained control over automatic collection.
New Features ✨
Other
NoOpStreamedSpanby @alexander-alderman-webb in #7163NoOpStreamedSpaninset_transaction_name()by @alexander-alderman-webb in #7164NoOpStreamedSpanby @alexander-alderman-webb in #7162Bug Fixes 🐛
Internal Changes 🔧
HTTPX, HTTPX2
Other
v2.67.1Compare Source
Bug Fixes 🐛
v2.67.0Compare Source
New Features ✨
Batcher
Integrations
Langchain
Openai
gen_ai.tool.definitionsfor the Responses API by @alexander-alderman-webb in #6951gen_ai.tool.definitionsfor the Chat Completions API by @alexander-alderman-webb in #6950gen_ai.request.reasoning.levelto OpenAI spans by @pabloDeputter in #6892Streaming
before_send_spanto top-level option by @sentrivana in #6885set_conversation_idAPI work by @sentrivana in #6866Other
set_attributesAPI by @sentrivana in #6897gen_ai.tool.definitionsattribute by @alexander-alderman-webb in #6956gen_ai.output.messagesincludingThinkingPartby @alexander-alderman-webb in #7037Bug Fixes 🐛
Openai Agents
run_single_turn_streamedreference by @alexander-alderman-webb in #7032Tests
capture_itemswith args by @sentrivana in #6867Other
sentry-traceshould take precedence over baggage by @sentrivana in #6863url.fullspan attribute by @sentrivana in #6861Documentation 📚
Internal Changes 🔧
Fastmcp
fastmcp>=4by @alexander-alderman-webb in #6923RootModelinstances by @alexander-alderman-webb in #6909try...exceptwithskipifby @alexander-alderman-webb in #6922Mcp
mcp.tool.result.is_errorby @alexander-alderman-webb in #6915mcp_typespackage by @alexander-alderman-webb in #6763_set_span_output_data()by @alexander-alderman-webb in #6762_get_span_config()by @alexander-alderman-webb in #6761_prepare_handler_data()by @alexander-alderman-webb in #6758Openai Agents
gen_ai.response.modelon Invoke Agent spans by @alexander-alderman-webb in #7028gen_ai.response.tool_callsby @alexander-alderman-webb in #6973gen_ai.request.available_toolson Invoke Agent spans by @alexander-alderman-webb in #6955gen_ai.request.available_toolson Execute Tool spans by @alexander-alderman-webb in #6954Other
iscoroutinefunctionshim inpatch_views()by @alexander-alderman-webb in #7024asyncio.iscoroutinefunctionby @alexander-alderman-webb in #7023on_agent_finish()hook by @alexander-alderman-webb in #7059FunctionModelfor testing output data transformations by @alexander-alderman-webb in #7036MAX_DATABAG_BREADTHby @Malkiz223 in #6783litellm<=1.96for generating test suites by @alexander-alderman-webb in #7147test-lambda-locallyby @alexander-alderman-webb in #7069pydantic-ai-slimto uv typing group by @alexander-alderman-webb in #7025langchain-baseto uv typing group by @alexander-alderman-webb in #7016ai_track()by @alexander-alderman-webb in #7005functions_to_tracetests by @alexander-alderman-webb in #6933mcp<2forfastmcp<0.3by @alexander-alderman-webb in #6925huey>=3.3.0by @alexander-alderman-webb in #6913httpxdependency tomcpandfastmcptests by @alexander-alderman-webb in #6905v2.66.1Compare Source
Bug Fixes 🐛
Tracing
Internal Changes 🔧
v2.66.0Compare Source
New Features ✨
Bug Fixes 🐛
Tracing
Internal Changes 🔧
nullcontexttosentry_sdk.utilsby @sentrivana in #6805v2.65.0Compare Source
New Features ✨
Huey
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6779messaging.destination.nameon producer spans by @alexander-alderman-webb in #6778Other
messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6767messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6776messaging.destination.nameon consumer spans by @alexander-alderman-webb in #6774Bug Fixes 🐛
Tracing
Other
ValueErrorin async middlewareprocess_*hooks by @r0ro in #6698Internal Changes 🔧
cache_write_tokensfield by @alexander-alderman-webb in #6804pydanticto the typing group by @alexander-alderman-webb in #6730python_multipartto the typing group by @alexander-alderman-webb in #6729changelog-previewby @alexander-alderman-webb in #6723requirements-testing.txtwith auvdependency group by @alexander-alderman-webb in #6693v2.64.0Compare Source
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 🐛
GraphBubbleUpexceptions by @alexander-alderman-webb in #6608scope["root_path"]in URLs by @alexander-alderman-webb in #6579contextvarsby @alexander-alderman-webb in #6625Documentation 📚
Internal Changes 🔧
stream_gen_ai_spansopt out by @alexander-alderman-webb in #6658setuptoolsfromrequirements-testing.txtby @alexander-alderman-webb in #6618executingfromrequirements-testing.txtby @alexander-alderman-webb in #6619asttokensfromrequirements-testing.txtby @alexander-alderman-webb in #6615responsesfromrequirements-testing.txtby @alexander-alderman-webb in #6621pytest-forkedfromrequirements-testing.txtby @alexander-alderman-webb in #6611dockerfromrequirements-testing.txtby @alexander-alderman-webb in #6616--skip-version-updateoption topopulate_tox.pyby @alexander-alderman-webb in #6675httpcorefromrequirements-testing.txtby @alexander-alderman-webb in #6622pytest-timeoutfromrequirements-testing.txtby @alexander-alderman-webb in #6613pytest-localserverfromrequirements-testing.txtby @alexander-alderman-webb in #6612jsonschemafromrequirements-testing.txtby @alexander-alderman-webb in #6620socksiofromrequirements-testing.txtby @alexander-alderman-webb in #6617pysocksfromrequirements-testing.txtby @alexander-alderman-webb in #6623brotlifromrequirements-testing.txtby @alexander-alderman-webb in #6614tomlifromrequirements-testing.txtby @alexander-alderman-webb in #6630pytest-watchfromrequirements-testing.txtby @alexander-alderman-webb in #6624pipfromrequirements-testing.txtby @alexander-alderman-webb in #6629Other
v2.63.0Compare Source
Bug Fixes 🐛
Fastapi
Other
user.ip_addresson telemetry if present by @sentrivana in #6555Internal Changes 🔧
v2.62.0Compare Source
New Features ✨
Add integration for
aiomysqlby @tonal in #4703We're adding support for the
aiomysqlpackage. To enable the integration, add it to yourintegrationslist:Support HTTPX2 by @sentrivana in #6463
We're adding out-of-the-box support for HTTPX2. As long as use the package, the Sentry integration
will be enabled automatically and you should see your requests instrumented in Sentry.
Bug Fixes 🐛
ModelRequestContext.modelexists by @alexander-alderman-webb in #6480functools.wraps()for patched functions by @alexander-alderman-webb in #6532Internal Changes 🔧
fakeredis<2.36.0in tests by @alexander-alderman-webb in #6444package-ecosystem: uvin dependabot by @sentrivana in #6522aiomysqlversion and update text matrix by @alexander-alderman-webb in #6496update-toxtimeout to 20 minutes by @alexander-alderman-webb in #6488grpcio-toolssource builds when generating test matrices by @alexander-alderman-webb in #6487update-toxjob by @alexander-alderman-webb in #6453setuptoolsin relevant tests by @alexander-alderman-webb in #6467v2.61.1Compare Source
Internal Changes 🔧
Rq
fakeredis<2.36.0in tests by @alexander-alderman-webb in #6454redisandfakeredisfor tests by @alexander-alderman-webb in #6443Other
v2.61.0Compare Source
New Features ✨
Add
server.addressto transformed spans whenstream_gen_ai_spans=Trueby @alexander-alderman-webb in #6307Allow integrations to define control flow exceptions by @sentrivana in #6425
Disable string truncation for events by default by @alexander-alderman-webb in #6290
Following a previous significant increase of the string truncation limit, we've now completely removed the limit by default.
In case you have large strings in your events, you should now be able to see them.
In rare cases, if you have really long strings (or a lot of them), you might see envelopes being dropped because of their size.
If that happens, you can set the
max_value_lengthinitoption to the previous value of100_000:Bug Fixes 🐛
Langchain
TypeErroronlangchain.agentsimport by @alexander-alderman-webb in #6268Openai Agents
starting_agentkeyword argument in runner patches by @ericapisani in #6428name, notdescriptioninstart_spanby @sentrivana in #6323Pydantic AI
Agent.run_stream_events()patch by @alexander-alderman-webb in #6281Strawberry
AttributeErrorongraphql_spaninresolveby @sentrivana in #6289Other
(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 [@&Bump pytest-mock from 3.1.0 to 3.2.0 in /src #82
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.