releases.shpreview
Sentry/Sentry Python

Sentry Python

$npx -y @buildinternet/releases show sentry-python
Mon
Wed
Fri
AprMayJunJulAugSepOctNovDecJanFebMarApr
Less
More
Releases18Avg6/moVersionsv2.50.0 → v2.57.0
Aug 7, 2025

Various fixes & improvements

  • Add empty tags by default to transaction (#4683) by @sl0thentr0py
  • Force creation of a new trace in continue_trace with empty headers (#4682) by @sl0thentr0py
  • mypy (#3152) by @sl0thentr0py
  • Add update_current_span to SDK 3 (#4679) by @sl0thentr0py
  • feat(tracing): Add convenience function update_current_span. (#4673) by @antonpirker
  • Update gen_ai.* and ai.* attributes (#4665) by @antonpirker
  • Add update_data to Span. (#4666) by @antonpirker
  • Fix plugins key codecov (#4655) by @sl0thentr0py
Jul 31, 2025

Various fixes & improvements

  • Migrate more type comments to annotations (#4651) by @sl0thentr0py
  • ref: Drop experimental logs options in 3.0 (#4653) by @sl0thentr0py
  • Polish migration guide (#4650) by @sl0thentr0py
  • Add enable_logs, before_send_log as top-level options (#4644) by @sentrivana
  • Add missing return type annotation (#3152) by @sl0thentr0py
  • Fix mypy (#4649) by @sentrivana
  • Better checking for empty tools list (#4647) by @antonpirker
  • ref: Remove MAX_EVENT_BYTES (#4630) by @sl0thentr0py
  • update changelog (9276f2a1) by @antonpirker
  • release: 2.34.1 (a71ef66d) by @getsentry-bot
  • typing (#3152) by @sl0thentr0py
  • Update tests (#3152) by @sl0thentr0py
  • Span data is always be a primitive data type (#4643) by @antonpirker
  • Fix typo in CHANGELOG.md (#4640) by @jgillard
  • updated test matrix (#3152) by @sl0thentr0py
  • Add new_trace api to force a new trace (#4642) by @sl0thentr0py
  • Revert "Add new_trace api to force a new trace" (#3152) by @sl0thentr0py
  • Add new_trace api to force a new trace (#3152) by @sl0thentr0py
  • Update changelog (72766a79) by @antonpirker
  • Update CHANGELOG.md (e1848d4f) by @sentrivana
  • release: 2.34.0 (e84f6f30) by @getsentry-bot
  • Considerably raise DEFAULT_MAX_VALUE_LENGTH (#4632) by @sentrivana
  • fix(celery): Latency should be in milliseconds, not seconds (#4637) by @sentrivana
  • OpenAI integration update (#4612) by @antonpirker

Plus 16 more

Jul 30, 2025

Various fixes & improvements

  • Fix: Make sure Span data in AI instrumentations is always a primitive data type (#4643) by @antonpirker
  • Fix: Typo in CHANGELOG.md (#4640) by @jgillard
Jul 29, 2025

Various fixes & improvements

  • Considerably raise DEFAULT_MAX_VALUE_LENGTH (#4632) by @sentrivana

    We have increased the string trimming limit considerably, allowing you to see more data without it being truncated. Note that this might, in rare cases, result in issue regrouping, for example if you're capturing message events with very long messages (longer than the default 1024 characters/bytes).

    If you want to adjust the limit, you can set a max_value_length in your sentry_sdk.init().

  • OpenAI integration update (#4612) by @antonpirker

    The OpenAIIntegration now supports OpenAI Responses API.

    The data captured will also show up in the new AI Agents Dashboard.

    This works out of the box, nothing to do on your side.

  • Expose set_transaction_name (#4634) by @sl0thentr0py

  • Fix(Celery): Latency should be in milliseconds, not seconds (#4637) by @sentrivana

  • Fix(Django): Treat django.template.context.BasicContext as sequence in serializer (#4621) by @sl0thentr0py

  • Fix(Huggingface): Fix huggingface_hub CI tests. (#4619) by @antonpirker

  • Fix: Ignore deliberate thread exception warnings (#4611) by @sl0thentr0py

  • Fix: Socket tests to not use example.com (#4627) by @sl0thentr0py

  • Fix: Threading run patch (#4610) by @sl0thentr0py

  • Tests: Simplify celery double patching test (#4626) by @sl0thentr0py

  • Tests: Remove remote example.com calls (#4622) by @sl0thentr0py

  • Tests: tox.ini update (#4635) by @sentrivana

  • Tests: Update tox (#4609) by @sentrivana

Jul 22, 2025

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

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.

Jul 21, 2025

Various fixes & improvements

  • fix(integrations): allow explicit op parameter in ai_track (#4597) by @mshavliuk
  • fix: Fix abs_path bug in serialize_frame (#4599) by @szokeasaurusrex
  • Remove pyrsistent from test dependencies (#4588) by @musicinmybrain
  • Remove explicit __del__'s in threaded classes (#4590) by @sl0thentr0py
  • Remove forked from test_transport, separate gevent tests and generalize capturing_server to be module level (#4577) by @sl0thentr0py
  • Improve token usage recording (#4566) by @antonpirker
Jul 15, 2025

Various fixes & improvements

  • feat(langchain): Support BaseCallbackManager (#4486) by @szokeasaurusrex
  • Use span.data instead of measurements for token usage (#4567) by @antonpirker
  • Fix custom model name (#4569) by @antonpirker
  • fix: shut down "session flusher" more promptly (#4561) by @bukzor
  • chore: Remove Lambda urllib3 pin on Python 3.10+ (#4549) by @sentrivana
Jun 27, 2025

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
Jun 24, 2025

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.

  • Logs: Add support for dict arguments (#4478) by @AbhiPrasad
  • Add Cursor generated rules (#4493) by @sl0thentr0py
  • Greatly simplify Langchain integrations _wrap_configure (#4479) by @szokeasaurusrex
  • Fix(ci): Remove tracerite pin (almost) (#4504) by @sentrivana
  • Fix(profiling): Ensure profiler thread exits when needed (#4497) by @Zylphrex
  • Fix(ci): Do not install newest tracerite (#4494) by @sentrivana
  • Fix(scope): Handle token reset LookupErrors gracefully (#4481) by @sentrivana
  • Tests: Tox update (#4509) by @sentrivana
  • Tests: Upper bound on fakeredis on old Python versions (#4482) by @sentrivana
  • Tests: Regenerate tox (#4457) by @sentrivana
Jun 12, 2025

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.

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),
    ]
)
  • fix(logs): Don't gate user behind send_default_pii (#4453) by @AbhiPrasad
  • fix(logging): Strip log record.name for more robust matching (#4411) by @romaingd-spi
  • Migrate to modern threading interface (#4452) by @emmanuel-ferdman
  • ref: Remove _capture_experimental_log scope parameter (#4424) by @szokeasaurusrex
  • feat(logs): Add user attributes to logs (#4423) by @szokeasaurusrex
  • fix: fix ARQ integration error (#4427) (#4428) by @ninoseki
  • fix(grpc): Fix AttributeError when instrumenting with OTel (#4405) by @sentrivana
  • fix(redis): Use command_queue instead of command_stack if available (#4404) by @sentrivana
  • fix: Handle invalid SENTRY_DEBUG values properly (#4400) by @szokeasaurusrex
  • Increase test coverage (#4393) by @mgaligniana
  • tests(logs): avoid failures when running with integrations enabled (#4388) by @rominf
  • Fix CI, adapt to new redis-py release (#4431) by @sentrivana
  • tests: Regenerate toxgen (#4403) by @sentrivana
  • tests: Regenerate tox.ini & fix CI (#4435) by @sentrivana
  • build(deps): bump codecov/codecov-action from 5.4.2 to 5.4.3 (#4397) by @dependabot
May 19, 2025

Various fixes & improvements

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

Various fixes & improvements

  • fix(loguru): Move integration setup from __init__ to setup_once (#4399) by @sentrivana
  • feat: Allow configuring keep_alive via environment variable (#4366) by @szokeasaurusrex
  • fix(celery): Do not send extra check-in (#4395) by @sentrivana
  • fix(typing): Add before_send_log to Experiments (#4383) by @sentrivana
  • ci: Fix pyspark test suite (#4382) by @sentrivana
  • fix(logs): Make sentry.message.parameters singular as per spec (#4387) by @AbhiPrasad
  • apidocs: Remove snowballstemmer pin (#4379) by @sentrivana
May 12, 2025

Various fixes & improvements

  • fix(logs): Forward extra from logger as attributes (#4374) by @AbhiPrasad
  • fix(logs): Canonicalize paths from the logger integration (#4336) by @colin-sentry
  • fix(logs): Use new transport (#4317) by @colin-sentry
  • fix: Deprecate set_measurement() API. (#3934) by @antonpirker
  • fix: Put feature flags on isolation scope (#4363) by @antonpirker
  • fix: Make use of SPANDATA consistent (#4373) by @antonpirker
  • fix: Discord link (#4371) by @sentrivana
  • tests: Pin snowballstemmer for now (#4372) by @sentrivana
  • tests: Regular tox update (#4367) by @sentrivana
  • tests: Bump test timeout for recursion stacktrace extract to 2s (#4351) by @booxter
  • tests: Fix test_stacktrace_big_recursion failure due to argv (#4346) by @booxter
  • tests: Move anthropic under toxgen (#4348) by @sentrivana
  • tests: Update tox.ini (#4347) by @sentrivana
  • chore: Update GH issue templates for Linear compatibility (#4328) by @stephanie-anderson
  • chore: Bump actions/create-github-app-token from 2.0.2 to 2.0.6 (#4358) by @dependabot
May 8, 2025

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

Apr 24, 2025

Various fixes & improvements

  • fix: Make sure to use the default decimal context in our code (#4231) by @antonpirker
  • fix(integrations): ASGI integration not capture transactions in Websocket (#4293) by @guodong000
  • feat(typing): Make all relevant types public (#4315) by @antonpirker
  • feat(spans): Record flag evaluations as span attributes (#4280) by @cmanallen
  • test(logs): Avoid failure when running with integrations enabled (#4316) by @rominf
  • tests: Remove unused code and rerun (#4313) by @sentrivana
  • tests: Add cohere to toxgen (#4304) by @sentrivana
  • tests: Migrate fastapi to toxgen (#4302) by @sentrivana
  • tests: Add huggingface_hub to toxgen (#4299) by @sentrivana
  • tests: Add huey to toxgen (#4298) by @sentrivana
  • tests: Update tox.ini (#4297) by @sentrivana
  • tests: Move aiohttp under toxgen (#4319) by @sentrivana
  • tests: Fix version picking in toxgen (#4323) by @sentrivana
  • build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2 (#4318) by @dependabot
Apr 15, 2025

Various fixes & improvements

  • fix(threading): Data leak in ThreadingIntegration between threads (#4281) by @antonpirker
  • fix(logging): Clarify separate warnings case is for Python <3.11 (#4296) by @szokeasaurusrex
  • fix(logging): Add formatted message to log events (#4292) by @szokeasaurusrex
  • fix(logging): Send raw logging parameters (#4291) by @szokeasaurusrex
  • fix: Revert "chore: Deprecate same_process_as_parent (#4244)" (#4290) by @sentrivana
Apr 14, 2025

Various fixes & improvements

  • fix(debug): Do not consider parent loggers for debug logging (#4286) by @szokeasaurusrex
  • test(tracing): Simplify static/classmethod tracing tests (#4278) by @szokeasaurusrex
  • feat(transport): Add a timeout (#4252) by @sentrivana
  • meta: Change CODEOWNERS back to Python SDK owners (#4269) by @sentrivana
  • feat(logs): Add sdk name and version as log attributes (#4262) by @AbhiPrasad
  • feat(logs): Add server.address to logs (#4257) by @AbhiPrasad
  • chore: Deprecate same_process_as_parent (#4244) by @sentrivana
  • feat(logs): Add sentry.origin attribute for log handler (#4250) by @AbhiPrasad
  • feat(tests): Add optional cutoff to toxgen (#4243) by @sentrivana
  • toxgen: Retry & fail if we fail to fetch PyPI data (#4251) by @sentrivana
  • build(deps): bump actions/create-github-app-token from 1.12.0 to 2.0.2 (#4248) by @dependabot
  • Trying to prevent the grpc setup from being flaky (#4233) by @antonpirker
  • feat(breadcrumbs): add _meta information for truncation of breadcrumbs (#4007) by @shellmayr
  • tests: Move django under toxgen (#4238) by @sentrivana
  • fix: Handle JSONDecodeError gracefully in StarletteRequestExtractor (#4226) by @moodix
  • fix(asyncio): Remove shutdown handler (#4237) by @sentrivana
Apr 2, 2025

Various fixes & improvements

  • fix(logs): Add a class which batches groups of logs together. (#4229) by @colin-sentry
  • fix(logs): Use repr instead of json for message and arguments (#4227) by @colin-sentry
  • fix(logs): Debug output from Sentry logs should always be debug level. (#4224) by @antonpirker
  • fix(ai): Do not consume anthropic streaming stop (#4232) by @colin-sentry
  • fix(spotlight): Do not spam sentry_sdk.warnings logger w/ Spotlight (#4219) by @BYK
  • fix(docs): fixed code snippet (#4218) by @antonpirker
  • build(deps): bump actions/create-github-app-token from 1.11.7 to 1.12.0 (#4214) by @dependabot
Latest
2.58.0
Tracking Since
Jul 6, 2021
Last fetched Apr 19, 2026