Skip to content

Releases: getsentry/sentry-python

3.0.0b2

3.0.0b2 Pre-release
Pre-release

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 27 Oct 09:16

This is a pre-release of the next Python SDK major, to be released in November 2026.

Want to give it a spin? Let us know how it went!

✨ Notable Changes

  • Say goodbye to transactions: span streaming is now the default tracing model
  • The fine-grained data_collection supersedes the flat send_default_pii

🗞️ Resources

2.73.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 22 Oct 09:09

New Features ✨

  • (arq) Add an option to monitor arq cron jobs by @wedamija in #8051
  • (huey) Add an option to monitor Huey periodic tasks by @wedamija in #8052
  • (rq) Add an option to monitor rq-scheduler jobs by @wedamija in #8053
  • (types) Export Attributes from the public types module by @sansynx in #8019

Bug Fixes 🐛

Internal Changes 🔧

Deps

Other

  • (litellm) Require filelock>=4.0.3 on Python 3.10/3.11 by @sentry-junior in #8026
  • (monitor) Stop background health checks in tests that drive the monitor by @sentry-junior in #8032
  • Update AGENTS.md by @sentrivana in #8077
  • 🤖 Update test matrix with new releases (10/12) by @github-actions in #7944

3.0.0b1

3.0.0b1 Pre-release
Pre-release

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 21 Oct 13:11
25b9cf4

This is a pre-release of the next Python SDK major, to be released in November 2026.

Want to give it a spin? Be our guest and let us know how it went!

2.72.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 12 Oct 13:08

New Features ✨

Asgi

Boto3

Wsgi

Other

Bug Fixes 🐛

Boto3

Other

Internal Changes 🔧

Deps

Openai Agents

Starlette

Other

2.71.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 28 Sep 14:04

New Features ✨

import sentry_sdk
from sentry_sdk.integrations.typesafe import TypeSafeIntegration

sentry_sdk.init(
    dsn="...",
    traces_sample_rate=1.0,
    integrations=[
        TypeSafeIntegration(),
    ]
)

Typesafe

Bug Fixes 🐛

Documentation 📚

Internal Changes 🔧

2.70.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 22 Sep 09:40

New Features ✨

import sentry_sdk
from sentry_sdk.integrations.mistral import MistralIntegration

sentry_sdk.init(
    dsn="...",
    traces_sample_rate=1.0,
    integrations=[
        MistralIntegration(),
    ]
)
import sentry_sdk

sentry_sdk.init(
    data_collection={
        "user_info": False,
        "gen_ai": {"inputs": False, "outputs": False},
        "graphql": {"document": False, "variables": False},
        "database_query_data": False,
        "queues": False,
        "http_bodies": [],
        "cookies": {
            "mode": "denylist",
            "terms": ["forwarded", "-ip", "remote-", "via", "-user"],
        },
        "http_headers": {
            "request": {
                "mode": "denylist",
                "terms": ["forwarded", "-ip", "remote-", "via", "-user"],
            },
        },
        "url_query_params": {
            "mode": "denylist",
            "terms": ["forwarded", "-ip", "remote-", "via", "-user"],
        },
    }
)

Mistral

Internal Changes 🔧

2.69.2

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 15 Sep 15:25

Bug Fixes 🐛

Documentation 📚

Internal Changes 🔧

Huggingface Hub

Pydantic Ai

Other

  • (deps) Lock file maintenance by @renovate in #7302
  • (django) Fix flaky cache tests by using uuid for cache LOCATION by @sentry-junior in #7444
  • (pymongo) Raise maxWireVersion by @alexander-alderman-webb in #7473
  • Remove unused base64 utils by @sentrivana in #7495
  • 🤖 Update test matrix with new releases (09/14) by @github-actions in #7486
  • 🤖 Update test matrix with new releases (09/07) by @github-actions in #7399

Other

  • Skip formatting log records when Sentry logs are off by @gyanu2507 in #7422

2.69.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 08 Sep 14:18

New Features ✨

Bug Fixes 🐛

  • (aiohttp) Preserve SigV4-signed propagation headers by @Robinbinu in #7427

Internal Changes 🔧

Mcp

Other

2.69.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 08 Sep 08:16
f186a62

New Features ✨

Other

Bug Fixes 🐛

Mcp

Openai

Starlette

  • Use url transaction source for host routing by @mjq in #7266
  • Set transaction name on current scope in sync handler by @mjq in #7201

Other

Internal Changes 🔧

Openai Agents

Pydantic Ai

Other

2.68.1

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 24 Aug 13:10
98f7d91

enable_logs

  • (logs) Don't stop sending auto-collected logs when enable_logs=True by @sentrivana in #7237

    If you have enable_logs set to True, our logging integrations for the standard library logging module as well as Loguru will auto-collect logs and send them to Sentry as Sentry logs by default, preserving old behavior. Turning automatic collection off for a specific integration can still be achieved using the capture_sentry_logs integration option.

    import sentry_sdk
    from sentry_sdk.integrations.logging import LoggingIntegration
    from sentry_sdk.integrations.loguru import LoguruIntegration
    
    sentry_sdk.init(
        enable_logs=True,
        integrations=[
            LoggingIntegration(capture_sentry_logs=True),
            LoguruIntegration(capture_sentry_logs=False),
        ],
    )

    Please note that the enable_logs option is deprecated and will be removed in the next major release. The sentry_sdk.logger.X API now works regardless of it, and auto-collection can be opted into via the capture_sentry_logs integration-level options, which are False by default, unless you have enable_logs=True. We've added this compatibility layer to make the transition to a enable_logs-free world easier.

Bug Fixes 🐛

  • (django) Add failed_request_status_codes by @mgaligniana in #7140
  • (anthropic) Gate gen_ai.response.tool_calls on outputs, not inputs by @ericapisani in #7207
  • (google_genai) Gate streaming gen_ai.response.tool_calls on outputs, not inputs by @ericapisani in #7210
  • (langchain) Use gen_ai.tool.definitions attribute when data collection is enabled by @ericapisani in #7204
  • (langgraph,huggingface_hub) Gate gen_ai.response.tool_calls on outputs, not inputs by @ericapisani in #7208
  • (openai) Gate gen_ai.response.tool_calls on outputs, not inputs by @ericapisani in #7205
  • (openai_agents) Gate gen_ai.response.tool_calls on outputs, not inputs by @ericapisani in #7209