Skip to content

Releases: getsentry/sentry-python

2.40.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 06 Oct 12:27
04968c4

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

2.39.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 25 Sep 09:15
0f99a91

Various fixes & improvements

Note: This is my last release. So long, and thanks for all the fish! by @antonpirker

2.38.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 15 Sep 15:00
d94652a

Various fixes & improvements

2.37.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 09 Sep 13:48
cd23041

Various fixes & improvements

2.37.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 05 Sep 11:41
75ef769

2.36.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 04 Sep 07:56

Various fixes & improvements

  • New integration: Unraisable exceptions (#4733) by @alexander-alderman-webb

    Add the unraisable exception integration to your sentry_sdk.init call:

import sentry_sdk
from sentry_sdk.integrations.unraisablehook import UnraisablehookIntegration

sentry_sdk.init(
    dsn="...",
    integrations=[
        UnraisablehookIntegration(),
    ]
)

3.0.0a6

3.0.0a6 Pre-release
Pre-release

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 01 Sep 12:49
f01df84

We're excited to announce that version 3.0 of the Sentry Python SDK is now
available. This release is the result of a long-term effort to use OpenTelemetry
under the hood for tracing. This switch opens the door for us to leverage the
full power of OpenTelemetry, so stay tuned for more integrations and features
in future releases.

Looking to upgrade from Sentry SDK 2.x to 3.x? See the
full list of changes for a comprehensive overview
of what's changed. Looking for a more digestible summary? See the
migration guide in the docs
with the most common migration patterns.

⚠️ This is a pre-release. If you feel like taking it for a spin, we'd be grateful
for your feedback. How was the migration? Is everything working as expected? Is
nothing working as expected? Something in between? Please let us know
on GitHub or
on Discord.

This version also adds an experimental async transport option. It can be enabled by passing transport_async=true in the experiments dict in sentry_sdk.init(). The async transport requires the asyncio integration and the httpcore[asyncio] library.

2.35.2

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 01 Sep 11:01
814cd59

Various fixes & improvements

  • fix(logs): Do not attach template if there are no parameters (#4728) by @sentrivana

2.35.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 26 Aug 08:23
fb4faf6

Various fixes & improvements

2.35.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 14 Aug 17:11
5eafb78

Various fixes & improvements