Update dependency sentry-sdk to >=2.48.0 #340

Merged
tobru merged 1 commit from renovate/sentry-sdk-2.x into main 2025-12-17 10:44:07 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) >=2.47.0 -> >=2.48.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v2.48.0

Compare Source

Middleware spans are now disabled by default in Django, Starlette and FastAPI integrations. Set the middleware_spans integration-level
option to capture individual spans per middleware layer. To record Django middleware spans, for example, configure as follows

  import sentry_sdk
  from sentry_sdk.integrations.django import DjangoIntegration

  sentry_sdk.init(
      dsn="<your-dsn>",
      integrations=[
          DjangoIntegration(middleware_spans=True),
      ],
  )
New Features
Langgraph
OTLP
Bug Fixes 🐛
Integrations
Internal Changes 🔧

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 | Confidence | |---|---|---|---| | [sentry-sdk](https://github.com/getsentry/sentry-python) ([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)) | `>=2.47.0` -> `>=2.48.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/sentry-sdk/2.48.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/sentry-sdk/2.47.0/2.48.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>getsentry/sentry-python (sentry-sdk)</summary> ### [`v2.48.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2480) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.47.0...2.48.0) Middleware spans are now disabled by default in Django, Starlette and FastAPI integrations. Set the `middleware_spans` integration-level option to capture individual spans per middleware layer. To record Django middleware spans, for example, configure as follows ```python import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration sentry_sdk.init( dsn="<your-dsn>", integrations=[ DjangoIntegration(middleware_spans=True), ], ) ``` ##### New Features ✨ - feat(ai): add single message truncation by [@&#8203;shellmayr](https://github.com/shellmayr) in [#&#8203;5079](https://github.com/getsentry/sentry-python/pull/5079) - feat(django): Add span around `Task.enqueue` by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5209](https://github.com/getsentry/sentry-python/pull/5209) - feat(starlette): Set transaction name when middleware spans are disabled by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5223](https://github.com/getsentry/sentry-python/pull/5223) - feat: Add "K\_REVISION" to environment variable release check (exposed by cloud run) by [@&#8203;rpradal](https://github.com/rpradal) in [#&#8203;5222](https://github.com/getsentry/sentry-python/pull/5222) ##### Langgraph - feat(langgraph): Response model attribute on invocation spans by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5212](https://github.com/getsentry/sentry-python/pull/5212) - feat(langgraph): Usage attributes on invocation spans by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5211](https://github.com/getsentry/sentry-python/pull/5211) ##### OTLP - feat(otlp): Optionally capture exceptions from otel's Span.record\_exception api by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;5235](https://github.com/getsentry/sentry-python/pull/5235) - feat(otlp): Implement new Propagator.inject for OTLPIntegration by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;5221](https://github.com/getsentry/sentry-python/pull/5221) ##### Bug Fixes 🐛 ##### Integrations - fix(django): Set active thread ID when middleware spans are disabled by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5220](https://github.com/getsentry/sentry-python/pull/5220) - fix(integrations): openai-agents fixing the input messages structure which was wrapped too much in some cases by [@&#8203;constantinius](https://github.com/constantinius) in [#&#8203;5203](https://github.com/getsentry/sentry-python/pull/5203) - fix(integrations): openai-agents fix multi-patching of `get_model` function by [@&#8203;constantinius](https://github.com/constantinius) in [#&#8203;5195](https://github.com/getsentry/sentry-python/pull/5195) - fix(integrations): add values for pydantic-ai and openai-agents to `_INTEGRATION_DEACTIVATES` to prohibit double span creation by [@&#8203;constantinius](https://github.com/constantinius) in [#&#8203;5196](https://github.com/getsentry/sentry-python/pull/5196) - fix(logs): Set `span_id` instead of `sentry.trace.parent_span_id` attribute by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5241](https://github.com/getsentry/sentry-python/pull/5241) - fix(logs, metrics): Gate metrics, logs user attributes behind `send_default_pii` by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5240](https://github.com/getsentry/sentry-python/pull/5240) - fix(pydantic-ai): Stop capturing internal exceptions by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5237](https://github.com/getsentry/sentry-python/pull/5237) - fix(ray): Actor class decorator with arguments by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5230](https://github.com/getsentry/sentry-python/pull/5230) - fix: Don't log internal exception for tornado user auth by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;5208](https://github.com/getsentry/sentry-python/pull/5208) - fix: Fix changelog config by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5192](https://github.com/getsentry/sentry-python/pull/5192) ##### Internal Changes 🔧 - chore(django): Disable middleware spans by default by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5219](https://github.com/getsentry/sentry-python/pull/5219) - chore(starlette): Disable middleware spans by default by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5224](https://github.com/getsentry/sentry-python/pull/5224) - ci: Unpin Python version for LiteLLM tests by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5238](https://github.com/getsentry/sentry-python/pull/5238) - ci: 🤖 Update test matrix with new releases (12/15) by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;5229](https://github.com/getsentry/sentry-python/pull/5229) - chore: Ignore type annotation migration in blame by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5234](https://github.com/getsentry/sentry-python/pull/5234) - ref: Clean up get\_active\_propagation\_context by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;5217](https://github.com/getsentry/sentry-python/pull/5217) - ref: Cleanup outgoing propagation\_context logic by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;5215](https://github.com/getsentry/sentry-python/pull/5215) - ci: Pin Python version to at least 3.10 for LiteLLM by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;5202](https://github.com/getsentry/sentry-python/pull/5202) - test: Remove skipped test by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;5197](https://github.com/getsentry/sentry-python/pull/5197) - Convert all remaining type annotations into the modern format by [@&#8203;zsol](https://github.com/zsol) in [#&#8203;5239](https://github.com/getsentry/sentry-python/pull/5239) - Convert sentry\_sdk type annotations into the modern format by [@&#8203;zsol](https://github.com/zsol) in [#&#8203;5206](https://github.com/getsentry/sentry-python/pull/5206) </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:eyJjcmVhdGVkSW5WZXIiOiI0Mi41LjIiLCJ1cGRhdGVkSW5WZXIiOiI0Mi41LjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
renovate added the
dependencies
label 2025-12-17 03:02:02 +00:00
renovate added 1 commit 2025-12-17 03:02:02 +00:00
Update dependency sentry-sdk to >=2.48.0
All checks were successful
Tests / test (push) Successful in 31s
0813ab209e
tobru merged commit c704f12b08 into main 2025-12-17 10:44:07 +00:00
tobru deleted branch renovate/sentry-sdk-2.x 2025-12-17 10:44:07 +00:00
Sign in to join this conversation.
No description provided.