Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 6, 2025

Bumps sentry-sdk from 2.39.0 to 2.40.0.

Release notes

Sourced from sentry-sdk's releases.

2.40.0

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 (#4883) by @​alexander-alderman-webb

  • Add tracing to DramatiqIntegration (#4571) by @​Igreh

  • Also emit spans for MCP tool calls done by the LLM (#4875) by @​constantinius

  • Option to not trace HTTP requests based on status codes (#4869) by @​alexander-alderman-webb You can now disable transactions for incoming requests with specific HTTP status codes. The new trace_ignore_status_codes option 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.

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

  • Move _set_agent_data call to ai_client_span function (#4876) by @​constantinius

  • Add script to determine lowest supported versions (#4867) by @​sentrivana

  • Update CONTRIBUTING.md (#4870) by @​sentrivana

Changelog

Sourced from sentry-sdk's changelog.

2.40.0

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 (#4883) by @​alexander-alderman-webb

  • Add tracing to DramatiqIntegration (#4571) by @​Igreh

  • Also emit spans for MCP tool calls done by the LLM (#4875) by @​constantinius

  • Option to not trace HTTP requests based on status codes (#4869) by @​alexander-alderman-webb You can now disable transactions for incoming requests with specific HTTP status codes. The new trace_ignore_status_codes option 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.

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

  • Move _set_agent_data call to ai_client_span function (#4876) by @​constantinius

  • Add script to determine lowest supported versions (#4867) by @​sentrivana

  • Update CONTRIBUTING.md (#4870) by @​sentrivana

Commits
  • 04968c4 Add links to CHANGELOG.md
  • 070ecd0 Update CHANGELOG.md
  • 91cc2bc release: 2.40.0
  • bf77a86 fix(litestar): Copy request info to prevent cookies mutation (#4883)
  • 41f709e ci: 🤖 Update test matrix with new releases (10/06) (#4890)
  • 8bc1966 ci: 🤖 Update test matrix with new releases (10/06) (#4889)
  • 39cb2c5 feat(huggingface): Support 1.0.0rc2 (#4873)
  • f979abf feat(integrations): add litellm integration (#4864)
  • bbd2a5d feat(integrations): Add tracing to DramatiqIntegration (#4571)
  • f3e8a5c fix(tests): Don't assume release is set (#4879)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.39.0 to 2.40.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.39.0...2.40.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-version: 2.40.0
  dependency-type: direct:development
  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 Pull requests that update Python code labels Oct 6, 2025
@dependabot dependabot bot requested a review from a team as a code owner October 6, 2025 20:30
@dependabot dependabot bot requested a review from hjgraca October 6, 2025 20:30
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 6, 2025
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 6, 2025
@github-actions github-actions bot added the internal Maintenance changes label Oct 6, 2025
Copy link

sonarqubecloud bot commented Oct 7, 2025

@leandrodamascena leandrodamascena merged commit 93d782c into develop Oct 7, 2025
12 checks passed
@leandrodamascena leandrodamascena deleted the dependabot/pip/develop/sentry-sdk-2.40.0 branch October 7, 2025 08:58
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.42%. Comparing base (075ec95) to head (53f5897).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7484   +/-   ##
========================================
  Coverage    96.42%   96.42%           
========================================
  Files          275      275           
  Lines        13055    13055           
  Branches       974      974           
========================================
  Hits         12588    12588           
  Misses         362      362           
  Partials       105      105           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 internal Maintenance changes python Pull requests that update Python code size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant