Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 9, 2025

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) ==2.28.0 -> ==2.41.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v2.41.0

Compare Source

Various fixes & improvements
  • feat: Add concurrent.futures patch to threading integration (#​4770) by @​alexander-alderman-webb

    The SDK now makes sure to automatically preserve span relationships when using ThreadPoolExecutor.

  • chore: Remove old metrics code (#​4899) by @​sentrivana

    Removed all code related to the deprecated experimental metrics feature (sentry_sdk.metrics).

  • ref: Remove "experimental" from log function name (#​4901) by @​sentrivana

  • fix(ai): Add mapping for gen_ai message roles (#​4884) by @​shellmayr

  • feat(metrics): Add trace metrics behind an experiments flag (#​4898) by @​k-fish

v2.40.0

Compare Source

Various fixes & improvements
  • Add LiteLLM integration (#​4864) by @​constantinius
    Once you've enabled the new LiteLLM integration, you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests:

    import sentry_sdk
    from sentry_sdk.integrations.litellm import LiteLLMIntegration
    sentry_sdk.init(
        dsn="<your-dsn>",

Set traces_sample_rate to 1.0 to capture 100%

of transactions for tracing.

  traces_sample_rate=1.0,

Add data like inputs and responses;

see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info

  send_default_pii=True,
  integrations=[
      LiteLLMIntegration(),
  ],

)


- Litestar: Copy request info to prevent cookies mutation (#&#8203;4883) by @&#8203;alexander-alderman-webb
- Add tracing to `DramatiqIntegration` (#&#8203;4571) by @&#8203;Igreh
- Also emit spans for MCP tool calls done by the LLM (#&#8203;4875) by @&#8203;constantinius
- Option to not trace HTTP requests based on status codes (#&#8203;4869) by @&#8203;alexander-alderman-webb
You can now disable transactions for incoming requests with specific HTTP status codes. The [new `trace_ignore_status_codes` option](https://docs.sentry.io/platforms/python/configuration/options/#trace_ignore_status_codes) accepts a `set` of status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled.
  
```python
import sentry_sdk

sentry_sdk.init(
    trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
)

Configuration

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

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from codegen-team as a code owner October 9, 2025 06:05
@renovate renovate bot enabled auto-merge (squash) October 9, 2025 06:05
@renovate renovate bot requested a review from a team as a code owner October 9, 2025 06:05
@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.40.0 fix(deps): update dependency sentry-sdk to v2.41.0 Oct 9, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from d49ab74 to e034240 Compare October 9, 2025 17:42
@renovate renovate bot merged commit 233454f into develop Oct 9, 2025
24 checks passed
@renovate renovate bot deleted the renovate/sentry-sdk-2.x branch October 9, 2025 22:09
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

🎉 This PR is included in version 0.56.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant