Skip to content

Bump sentry-sdk[django] from 2.47.0 to 2.48.0#555

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/uv/sentry-sdk-django--2.48.0
Open

Bump sentry-sdk[django] from 2.47.0 to 2.48.0#555
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/uv/sentry-sdk-django--2.48.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 22, 2025

Bumps sentry-sdk[django] from 2.47.0 to 2.48.0.

Release notes

Sourced from sentry-sdk[django]'s releases.

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

  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

... (truncated)

Changelog

Sourced from sentry-sdk[django]'s changelog.

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

  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

  • fix(django): Set active thread ID when middleware spans are disabled by @​alexander-alderman-webb in #5220

  • fix(integrations): openai-agents fixing the input messages structure which was wrapped too much in some cases by @​constantinius in #5203

  • fix(integrations): openai-agents fix multi-patching of get_model function by @​constantinius in #5195

  • fix(integrations): add values for pydantic-ai and openai-agents to _INTEGRATION_DEACTIVATES to prohibit double span creation by @​constantinius in #5196

  • fix(logs): Set span_id instead of sentry.trace.parent_span_id attribute by @​sentrivana in #5241

  • fix(logs, metrics): Gate metrics, logs user attributes behind send_default_pii by @​sentrivana in #5240

... (truncated)

Commits
  • 32e9cac Phrasing and code formatting in changelog
  • bf30403 Call out new default for middleware spans and fix formatting in changelog
  • 19e0d1f Fix changelog
  • 6516b8b release: 2.48.0
  • e275c9e Convert all remaining type annotations to PEP-526 format (#5239)
  • a29b421 fix(logs): Set span_id instead of sentry.trace.parent_span_id attribute (...
  • a9d89f2 fix(pydantic-ai): Stop capturing internal exceptions (#5237)
  • 5606bb3 fix(logs, metrics): Gate metrics, logs user attributes behind `send_default_p...
  • 6046f2d ci: Unpin Python version for LiteLLM tests (#5238)
  • 42ed87a ci: 🤖 Update test matrix with new releases (12/15) (#5229)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [sentry-sdk[django]](https://github.com/getsentry/sentry-python) from 2.47.0 to 2.48.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@2.47.0...2.48.0)

---
updated-dependencies:
- dependency-name: sentry-sdk[django]
  dependency-version: 2.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Dec 22, 2025
"django-crum==0.7.9",
"sentry-sdk[django]==2.47.0",
"sentry-sdk[django]==2.48.0",
"redis==7.1.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Upgrading sentry-sdk to 2.48.0 will silently disable middleware performance monitoring because it's no longer enabled by default and the current configuration doesn't explicitly enable it.
Severity: HIGH | Confidence: High

🔍 Detailed Analysis

The upgrade of sentry-sdk to version 2.48.0 introduces a breaking change where middleware performance monitoring is disabled by default. The application's current Sentry initialization in prs2/settings.py uses DjangoIntegration without explicitly setting the middleware_spans parameter. As a result of this dependency update, performance data for all middleware components will no longer be captured. This will cause a silent loss of observability into the performance of critical middleware like authentication and sessions, without raising any application errors.

💡 Suggested Fix

In prs2/settings.py, update the sentry_sdk.init call to explicitly enable middleware spans within the DjangoIntegration. The configuration should be integrations=[DjangoIntegration(cache_spans=True, middleware_spans=True)].

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: pyproject.toml#L36

Potential issue: The upgrade of `sentry-sdk` to version 2.48.0 introduces a breaking
change where middleware performance monitoring is disabled by default. The application's
current Sentry initialization in `prs2/settings.py` uses `DjangoIntegration` without
explicitly setting the `middleware_spans` parameter. As a result of this dependency
update, performance data for all middleware components will no longer be captured. This
will cause a silent loss of observability into the performance of critical middleware
like authentication and sessions, without raising any application errors.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 7840753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments