◐ Shell
clean mode source ↗

Releases · getsentry/sentry-python

2.63.0

Bug Fixes 🐛

Fastapi

  • Prevent double wrapping of sync handlers on FastAPI >= 0.137 by @jhonny-on in #6569
  • Use effective_route_context path for prefixed routers by @ericapisani in #6572

Other

Internal Changes 🔧

2.62.0

New Features ✨

  • Add integration for aiomysql by @tonal in #4703

    We're adding support for the aiomysql package. To enable the integration, add it to your integrations list:

    import sentry_sdk
    from sentry_sdk.integrations.aiomysql import AioMySQLIntegration
    
    sentry_sdk.init(
        traces_sample_rate=1.0,
        integrations=[AioMySQLIntegration()],
    )
  • Support HTTPX2 by @sentrivana in #6463

    We're adding out-of-the-box support for HTTPX2. As long as use the package, the Sentry integration
    will be enabled automatically and you should see your requests instrumented in Sentry.

    import httpx2
    import sentry_sdk
    
    sentry_sdk.init(...)
    
    with sentry_sdk.start_transaction(name="testing_sentry"):
        httpx2.get("https://sentry.io/")

Bug Fixes 🐛

Internal Changes 🔧

2.61.1

Internal Changes 🔧

Rq

Other

2.61.0

New Features ✨

  • Add server.address to transformed spans when stream_gen_ai_spans=True by @alexander-alderman-webb in #6307

  • Allow integrations to define control flow exceptions by @sentrivana in #6425

  • Disable string truncation for events by default by @alexander-alderman-webb in #6290

    Following a previous significant increase of the string truncation limit, we've now completely removed the limit by default.
    In case you have large strings in your events, you should now be able to see them.

    In rare cases, if you have really long strings (or a lot of them), you might see envelopes being dropped because of their size.
    If that happens, you can set the max_value_length init option to the previous value of 100_000:

    sentry_sdk.init(
        ...,
        max_value_length=100_000,
    )

Bug Fixes 🐛

Langchain

Openai Agents

Pydantic AI

Strawberry

Other

  • (anthropic) Do not set gen_ai.response.model to None by @alexander-alderman-webb in #6312

  • (asyncpg) Use Sentry span attribute name conventions by @ericapisani in #6306

  • (boto3) Guard setting method by @sentrivana in #6288

  • (cohere) Stop setting transaction status when child span fails by @alexander-alderman-webb in #6300

  • (google-genai) Guard against None response ID and response model by @alexander-alderman-webb in #6314

  • (huey) Fix group and chord handling in enqueue by @ericapisani in #6392

  • (integrations) Auto-wrap root gen_ai spans for openai, cohere, langgraph, huggingface_hub by @constantinius in #6285

  • (serializer) Don't call __iter__ on arbitrary sequences by @sentrivana in #6304

    Previously, we'd attempt to serialize any Sequence by walking through it by calling its __iter__ function.
    We've now changed the serializer to only serialize built-in sequences (like lists, tuples, and sets) to avoid
    triggering side-effects from custom __iter__ implementations.

    This might mean some objects might be serialized differently. If you want to continue serializing a specific
    custom sequence class the old way, you can register it via sentry_sdk.serializer.add_repr_sequence_type (see
    here).

  • Memory leak in SentrySpanProcessor by @volodkindv in #6271

Documentation 📚

Internal Changes 🔧

Langchain

Openai Agents

Pydantic Ai

Other

2.60.0

2.59.0a2

New Features ✨

Bug Fixes 🐛

Openai

Other

Internal Changes 🔧

Openai

Other

Other

2.59.0a1

New Features ✨

Langchain

Other

Bug Fixes 🐛

Httpx

Langchain

Other

Internal Changes 🔧

Stdlib

Other

Other

2.59.0

New Features ✨

Langchain

Other

Bug Fixes 🐛

We've put additional data that might contain sensitive information, like GraphQL documents, behind the send_default_pii option.

Httpx

Langchain

Other

Internal Changes 🔧

Stdlib

Other

2.58.0a1

New Features ✨

Bug Fixes 🐛

  • (google_genai) Redact binary data in inline_data and fix multi-part message extraction by @ericapisani in #5977
  • (profiler) Stop nulling buffer on teardown by @ericapisani in #6075

Internal Changes 🔧

Anthropic

Google Genai

Langchain

Litellm

Pydantic Ai

Other

2.58.0

New Features ✨

Bug Fixes 🐛

Anthropic

Pydantic Ai

Other

Internal Changes 🔧

Litellm

Other

Other

  • Handle None span context in the span processor and pin tokenizers version for anthropic tests on Python 3.8 by @alexander-alderman-webb in #5967