Update dependency sentry-sdk to >=2.54.0 #437

Merged
tobru merged 1 commit from renovate/sentry-sdk-2.x into main 2026-03-09 08:34:11 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) >=2.53.0>=2.54.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v2.54.0

Compare Source

New Features
  • Add set_attribute, remove_attribute to global API by @​sentrivana in #​5555

    You can now set and unset attributes on logs and metrics via top-level API. Think of it as sentry_sdk.set_tag() for attribute-based telemetry. Other event types (transactions, spans, errors) will be unaffected.

    import sentry_sdk
    
    sentry_sdk.init(...)
    
    sentry_sdk.set_attribute("my.attribute", "my value")
    
    # This metric will have "my.attribute" set
    sentry_sdk.metrics.count("counter", 1)
    
    # Remove the attribute
    sentry_sdk.remove_attribute("my.attribute")
    
    # This log will not have "my.attribute" set
    sentry_sdk.logger.info("An info log")
    
Bug Fixes 🐛
Openai
Other
Documentation 📚
Internal Changes 🔧
Agents
Openai
Openai Agents
Other

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [sentry-sdk](https://github.com/getsentry/sentry-python) ([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)) | `>=2.53.0` → `>=2.54.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/sentry-sdk/2.54.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/sentry-sdk/2.53.0/2.54.0?slim=true) | --- ### Release Notes <details> <summary>getsentry/sentry-python (sentry-sdk)</summary> ### [`v2.54.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2540) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.53.0...2.54.0) ##### New Features ✨ - Add `set_attribute`, `remove_attribute` to global API by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5555](https://github.com/getsentry/sentry-python/pull/5555) You can now set and unset attributes on logs and metrics via top-level API. Think of it as `sentry_sdk.set_tag()` for attribute-based telemetry. Other event types (transactions, spans, errors) will be unaffected. ```python import sentry_sdk sentry_sdk.init(...) sentry_sdk.set_attribute("my.attribute", "my value") # This metric will have "my.attribute" set sentry_sdk.metrics.count("counter", 1) # Remove the attribute sentry_sdk.remove_attribute("my.attribute") # This log will not have "my.attribute" set sentry_sdk.logger.info("An info log") ``` ##### Bug Fixes 🐛 ##### Openai - Attach response model with streamed Completions API by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5557](https://github.com/getsentry/sentry-python/pull/5557) - Attach response model with streamed Responses API by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5554](https://github.com/getsentry/sentry-python/pull/5554) - Avoid consuming iterables passed to the Completions API by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5489](https://github.com/getsentry/sentry-python/pull/5489) - Avoid consuming iterables passed to the Embeddings API by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5491](https://github.com/getsentry/sentry-python/pull/5491) ##### Other - (anthropic) Fix token accounting by [@&#8203;shellmayr](https://github.com/shellmayr) in [#&#8203;5490](https://github.com/getsentry/sentry-python/pull/5490) - (google-genai) Remove agent spans for simple requests by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5443](https://github.com/getsentry/sentry-python/pull/5443) - (grpc) Read method from handler\_call\_details for grpcio >= 1.76 compat by [@&#8203;yeung108](https://github.com/yeung108) in [#&#8203;5521](https://github.com/getsentry/sentry-python/pull/5521) - (httpx) Correctly append baggage in async client by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5530](https://github.com/getsentry/sentry-python/pull/5530) - (pydantic-ai) Adapt to missing `ToolManager._call_tool` by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5522](https://github.com/getsentry/sentry-python/pull/5522) - (utils) Use HEROKU\_BUILD\_COMMIT env var for default release by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5499](https://github.com/getsentry/sentry-python/pull/5499) - (wsgi) Do not wrap file responses when uWSGI offload-threads is enabled by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5556](https://github.com/getsentry/sentry-python/pull/5556) ##### Documentation 📚 - Add troubleshooting note for editable installs with uWSGI by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5552](https://github.com/getsentry/sentry-python/pull/5552) - Add debugging advice by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5517](https://github.com/getsentry/sentry-python/pull/5517) - New integration guide by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5476](https://github.com/getsentry/sentry-python/pull/5476) ##### Internal Changes 🔧 ##### Agents - Add security-review skill to agent configuration by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5498](https://github.com/getsentry/sentry-python/pull/5498) - Add sentry skills to be used by warden in CI reviews by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5485](https://github.com/getsentry/sentry-python/pull/5485) ##### Openai - Only handle streamed results when applicable by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5553](https://github.com/getsentry/sentry-python/pull/5553) - Extract input in API-specific functions by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5546](https://github.com/getsentry/sentry-python/pull/5546) - Separate output handling by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5543](https://github.com/getsentry/sentry-python/pull/5543) ##### Openai Agents - Remove `set_data_normalized` for primitive attributes by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5509](https://github.com/getsentry/sentry-python/pull/5509) - Expect new tool fields by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5471](https://github.com/getsentry/sentry-python/pull/5471) ##### Other - (ai) Add configuration for dotagents by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5480](https://github.com/getsentry/sentry-python/pull/5480) - (anthropic) Remove `set_data_normalized` for primitive attributes by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5504](https://github.com/getsentry/sentry-python/pull/5504) - (github) Add warden configuration by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5484](https://github.com/getsentry/sentry-python/pull/5484) - (pydantic-ai) Remove `set_data_normalized` for the `gen_ai.response.model` attribute by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5512](https://github.com/getsentry/sentry-python/pull/5512) - (repo) Add .serena to .gitignore by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;5464](https://github.com/getsentry/sentry-python/pull/5464) - Updated codecov.yml by [@&#8203;MathurAditya724](https://github.com/MathurAditya724) in [#&#8203;5571](https://github.com/getsentry/sentry-python/pull/5571) - 🤖 Update test matrix with new releases (02/24) by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;5524](https://github.com/getsentry/sentry-python/pull/5524) - 🤖 Update test matrix with new releases (02/23) by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;5503](https://github.com/getsentry/sentry-python/pull/5503) - 🤖 Update test matrix with new releases (02/19) by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;5483](https://github.com/getsentry/sentry-python/pull/5483) - 🤖 Update test matrix with new releases (02/18) by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;5475](https://github.com/getsentry/sentry-python/pull/5475) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yLjEiLCJ1cGRhdGVkSW5WZXIiOiI0My4yLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
Update dependency sentry-sdk to >=2.54.0
All checks were successful
Tests / test (push) Successful in 48s
fd534787b3
tobru merged commit f5e7b5de5f into main 2026-03-09 08:34:11 +00:00
tobru deleted branch renovate/sentry-sdk-2.x 2026-03-09 08:34:11 +00:00
Sign in to join this conversation.
No description provided.