Update dependency sentry-sdk to v2.68.1 - #1089
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
|
This PR is stale because it has been open 1+ days with no activity. Feel free to either 1) remove the stale label or 2) comment. If nothing happens, this will be closed in 7 days. |
renovate
Bot
force-pushed
the
renovate/sentry-sdk-2.x
branch
from
August 25, 2026 13:53
a377a56 to
fa150c8
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:
==2.48.0→==2.68.1Release Notes
getsentry/sentry-python (sentry-sdk)
v2.68.1Compare Source
enable_logs(logs) Don't stop sending auto-collected logs when
enable_logs=Trueby @sentrivana in #7237If you have
enable_logsset toTrue, our logging integrations for the standard library logging module as well as Loguru will auto-collect logs and send them to Sentry as Sentry logs by default, preserving old behavior. Turning automatic collection off for a specific integration can still be achieved using thecapture_sentry_logsintegration option.Please note that the
enable_logsoption is deprecated and will be removed in the next major release. Thesentry_sdk.logger.XAPI now works regardless of it, and auto-collection can be opted into via thecapture_sentry_logsintegration-level options, which areFalseby default, unless you haveenable_logs=True. We've added this compatibility layer to make the transition to aenable_logs-free world easier.Bug Fixes 🐛
failed_request_status_codesby @mgaligniana in #7140gen_ai.response.tool_callson outputs, not inputs by @ericapisani in #7207gen_ai.response.tool_callson outputs, not inputs by @ericapisani in #7210gen_ai.tool.definitionsattribute when data collection is enabled by @ericapisani in #7204gen_ai.response.tool_callson outputs, not inputs by @ericapisani in #7208gen_ai.response.tool_callson outputs, not inputs by @ericapisani in #7205gen_ai.response.tool_callson outputs, not inputs by @ericapisani in #7209v2.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
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.