Skip to content

Releases: getsentry/sentry-python

3.0.0a3

22 Jul 08:52
Compare
Choose a tag to compare
3.0.0a3 Pre-release
Pre-release

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.

2.33.2

22 Jul 10:41
Compare
Choose a tag to compare

Various fixes & improvements

  • ref(spotlight): Do not import sentry_sdk.spotlight unless enabled (#4607) by @sentrivana
  • ref(gnu-integration): update clickhouse stacktrace parsing (#4598) by @MeredithAnya

2.33.1

21 Jul 12:52
5cd43be
Compare
Choose a tag to compare

Various fixes & improvements

2.33.0

15 Jul 12:07
98b107f
Compare
Choose a tag to compare

Various fixes & improvements

2.32.0

27 Jun 08:10
4b022dc
Compare
Choose a tag to compare

Various fixes & improvements

  • feat(sessions): Add top-level start- and end session methods (#4474) by @szokeasaurusrex
  • feat(openai-agents): Set tool span to failed if an error is raised in the tool (#4527) by @antonpirker
  • fix(integrations/ray): Correctly pass keyword arguments to ray.remote function (#4430) by @svartalf
  • fix(langchain): Make span_map an instance variable (#4476) by @szokeasaurusrex
  • fix(langchain): Ensure no duplicate SentryLangchainCallback (#4485) by @szokeasaurusrex
  • fix(Litestar): Apply failed_request_status_codes to exceptions raised in middleware (#4074) by @vrslev

2.31.0

24 Jun 16:36
9792e4f
Compare
Choose a tag to compare

Various fixes & improvements

  • New Integration (BETA): Add support for openai-agents (#4437) by @antonpirker

    We can now instrument AI agents that are created with the OpenAI Agents SDK out of the box.

import sentry_sdk
from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration

# Add the OpenAIAgentsIntegration to your sentry_sdk.init call:
sentry_sdk.init(
    dsn="...",
    integrations=[
        OpenAIAgentsIntegration(),
    ]
)

For more information see the OpenAI Agents integrations documentation.

3.0.0a2

12 Jun 11:15
94376a1
Compare
Choose a tag to compare
3.0.0a2 Pre-release
Pre-release

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.

2.30.0

12 Jun 10:34
719efd5
Compare
Choose a tag to compare

Various fixes & improvements

  • New beta feature: Sentry logs for Loguru (#4445) by @sentrivana

    We can now capture Loguru logs and send them to Sentry.

import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration

# Setup Sentry SDK to send Loguru log messages with a level of "error" or higher to Sentry
sentry_sdk.init(
    _experiments={
        "enable_logs": True,
    },
    integrations=[
        LoguruIntegration(sentry_logs_level=logging.ERROR),
    ]
)

2.29.1

19 May 14:27
Compare
Choose a tag to compare

Various fixes & improvements

  • fix(logs): send severity_text: warn instead of warning (#4396) by @lcian

2.29.0

19 May 13:46
Compare
Choose a tag to compare

Various fixes & improvements