Bump sentry-sdk from 2.47.0 to 2.48.0 in /backend (#1474)

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from
2.47.0 to 2.48.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-python/releases">sentry-sdk's
releases</a>.</em></p>
<blockquote>
<h2>2.48.0</h2>
<p>Middleware spans are now disabled by default in Django, Starlette and
FastAPI integrations. Set the <code>middleware_spans</code>
integration-level
option to capture individual spans per middleware layer. To record
Django middleware spans, for example, configure as follows</p>
<pre lang="python"><code>  import sentry_sdk
  from sentry_sdk.integrations.django import DjangoIntegration
<p>sentry_sdk.init(<br />
dsn=&quot;&lt;your-dsn&gt;&quot;,<br />
integrations=[<br />
DjangoIntegration(middleware_spans=True),<br />
],<br />
)<br />
</code></pre></p>
<h3>New Features </h3>
<ul>
<li>
<p>feat(ai): add single message truncation by <a
href="https://github.com/shellmayr"><code>@​shellmayr</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5079">#5079</a></p>
</li>
<li>
<p>feat(django): Add span around <code>Task.enqueue</code> by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5209">#5209</a></p>
</li>
<li>
<p>feat(starlette): Set transaction name when middleware spans are
disabled by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5223">#5223</a></p>
</li>
<li>
<p>feat: Add &quot;K_REVISION&quot; to environment variable release
check (exposed by cloud run) by <a
href="https://github.com/rpradal"><code>@​rpradal</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5222">#5222</a></p>
</li>
</ul>
<h4>Langgraph</h4>
<ul>
<li>feat(langgraph): Response model attribute on invocation spans by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5212">#5212</a></li>
<li>feat(langgraph): Usage attributes on invocation spans by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5211">#5211</a></li>
</ul>
<h4>OTLP</h4>
<ul>
<li>feat(otlp): Optionally capture exceptions from otel's
Span.record_exception api by <a
href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5235">#5235</a></li>
<li>feat(otlp): Implement new Propagator.inject for OTLPIntegration by
<a
href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5221">#5221</a></li>
</ul>
<h3>Bug Fixes 🐛</h3>
<h4>Integrations</h4>
<ul>
<li>
<p>fix(django): Set active thread ID when middleware spans are disabled
by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5220">#5220</a></p>
</li>
<li>
<p>fix(integrations): openai-agents fixing the input messages structure
which was wrapped too much in some cases by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5203">#5203</a></p>
</li>
<li>
<p>fix(integrations): openai-agents fix multi-patching of
<code>get_model</code> function by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5195">#5195</a></p>
</li>
<li>
<p>fix(integrations): add values for pydantic-ai and openai-agents to
<code>_INTEGRATION_DEACTIVATES</code> to prohibit double span creation
by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5196">#5196</a></p>
</li>
<li>
<p>fix(logs): Set <code>span_id</code> instead of
<code>sentry.trace.parent_span_id</code> attribute by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5241">#5241</a></p>
</li>
<li>
<p>fix(logs, metrics): Gate metrics, logs user attributes behind
<code>send_default_pii</code> by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5240">#5240</a></p>
</li>
<li>
<p>fix(pydantic-ai): Stop capturing internal exceptions by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5237">#5237</a></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md">sentry-sdk's
changelog</a>.</em></p>
<blockquote>
<h2>2.48.0</h2>
<p>Middleware spans are now disabled by default in Django, Starlette and
FastAPI integrations. Set the <code>middleware_spans</code>
integration-level
option to capture individual spans per middleware layer. To record
Django middleware spans, for example, configure as follows</p>
<pre lang="python"><code>  import sentry_sdk
  from sentry_sdk.integrations.django import DjangoIntegration
<p>sentry_sdk.init(<br />
dsn=&quot;&lt;your-dsn&gt;&quot;,<br />
integrations=[<br />
DjangoIntegration(middleware_spans=True),<br />
],<br />
)<br />
</code></pre></p>
<h3>New Features </h3>
<ul>
<li>
<p>feat(ai): add single message truncation by <a
href="https://github.com/shellmayr"><code>@​shellmayr</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5079">#5079</a></p>
</li>
<li>
<p>feat(django): Add span around <code>Task.enqueue</code> by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5209">#5209</a></p>
</li>
<li>
<p>feat(starlette): Set transaction name when middleware spans are
disabled by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5223">#5223</a></p>
</li>
<li>
<p>feat: Add &quot;K_REVISION&quot; to environment variable release
check (exposed by cloud run) by <a
href="https://github.com/rpradal"><code>@​rpradal</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5222">#5222</a></p>
</li>
</ul>
<h4>Langgraph</h4>
<ul>
<li>feat(langgraph): Response model attribute on invocation spans by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5212">#5212</a></li>
<li>feat(langgraph): Usage attributes on invocation spans by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5211">#5211</a></li>
</ul>
<h4>OTLP</h4>
<ul>
<li>feat(otlp): Optionally capture exceptions from otel's
Span.record_exception api by <a
href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5235">#5235</a></li>
<li>feat(otlp): Implement new Propagator.inject for OTLPIntegration by
<a
href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5221">#5221</a></li>
</ul>
<h3>Bug Fixes 🐛</h3>
<h4>Integrations</h4>
<ul>
<li>
<p>fix(django): Set active thread ID when middleware spans are disabled
by <a
href="https://github.com/alexander-alderman-webb"><code>@​alexander-alderman-webb</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5220">#5220</a></p>
</li>
<li>
<p>fix(integrations): openai-agents fixing the input messages structure
which was wrapped too much in some cases by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5203">#5203</a></p>
</li>
<li>
<p>fix(integrations): openai-agents fix multi-patching of
<code>get_model</code> function by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5195">#5195</a></p>
</li>
<li>
<p>fix(integrations): add values for pydantic-ai and openai-agents to
<code>_INTEGRATION_DEACTIVATES</code> to prohibit double span creation
by <a
href="https://github.com/constantinius"><code>@​constantinius</code></a>
in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5196">#5196</a></p>
</li>
<li>
<p>fix(logs): Set <code>span_id</code> instead of
<code>sentry.trace.parent_span_id</code> attribute by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5241">#5241</a></p>
</li>
<li>
<p>fix(logs, metrics): Gate metrics, logs user attributes behind
<code>send_default_pii</code> by <a
href="https://github.com/sentrivana"><code>@​sentrivana</code></a> in <a
href="https://redirect.github.com/getsentry/sentry-python/pull/5240">#5240</a></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="32e9cac9b2"><code>32e9cac</code></a>
Phrasing and code formatting in changelog</li>
<li><a
href="bf3040395e"><code>bf30403</code></a>
Call out new default for middleware spans and fix formatting in
changelog</li>
<li><a
href="19e0d1fb8c"><code>19e0d1f</code></a>
Fix changelog</li>
<li><a
href="6516b8b627"><code>6516b8b</code></a>
release: 2.48.0</li>
<li><a
href="e275c9e943"><code>e275c9e</code></a>
Convert all remaining type annotations to PEP-526 format (<a
href="https://redirect.github.com/getsentry/sentry-python/issues/5239">#5239</a>)</li>
<li><a
href="a29b42171e"><code>a29b421</code></a>
fix(logs): Set <code>span_id</code> instead of
<code>sentry.trace.parent_span_id</code> attribute (...</li>
<li><a
href="a9d89f2ddd"><code>a9d89f2</code></a>
fix(pydantic-ai): Stop capturing internal exceptions (<a
href="https://redirect.github.com/getsentry/sentry-python/issues/5237">#5237</a>)</li>
<li><a
href="5606bb3e58"><code>5606bb3</code></a>
fix(logs, metrics): Gate metrics, logs user attributes behind
`send_default_p...</li>
<li><a
href="6046f2d046"><code>6046f2d</code></a>
ci: Unpin Python version for LiteLLM tests (<a
href="https://redirect.github.com/getsentry/sentry-python/issues/5238">#5238</a>)</li>
<li><a
href="42ed87a774"><code>42ed87a</code></a>
ci: 🤖 Update test matrix with new releases (12/15) (<a
href="https://redirect.github.com/getsentry/sentry-python/issues/5229">#5229</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/getsentry/sentry-python/compare/2.47.0...2.48.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sentry-sdk&package-manager=uv&previous-version=2.47.0&new-version=2.48.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2025-12-17 04:27:29 +00:00
committed by GitHub
parent 51a0252e23
commit f4d4ee369f

View File

@@ -22,7 +22,7 @@ dependencies = [
"pyjwt==2.10.1",
"python-dotenv==1.2.1",
"python-multipart==0.0.20",
"sentry-sdk==2.47.0",
"sentry-sdk==2.48.0",
"sqlalchemy==2.0.44",
"sqlalchemy-stubs==0.4",
"starlette==0.49.1",