close
Skip to content

Releases: getsentry/sentry-python

2.61.0

28 May 09:40
53df878

Choose a tag to compare

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

13 May 13:35

Choose a tag to compare

Adds a new stream_gen_ai_spans option that controls how gen_ai spans are
sent to Sentry. When set, the SDK extracts all gen_ai spans out of a
transaction and sends them as v2 envelope items.

Enable this option if gen_ai spans are being dropped because the transaction payload exceeds size limits.

import sentry_sdk

sentry_sdk.init(
  dsn='https://examplePublicKey@o0.ingest.sentry.io/0',
  stream_gen_ai_spans=True,
)

New Features ✨

Bug Fixes 🐛

Openai

Other

Internal Changes 🔧

Django

Openai

Other

2.59.0a2

08 May 08:59

Choose a tag to compare

2.59.0a2 Pre-release
Pre-release

New Features ✨

Bug Fixes 🐛

Openai

Other

Internal Changes 🔧

Openai

Other

Other

2.59.0a1

05 May 08:55

Choose a tag to compare

2.59.0a1 Pre-release
Pre-release

New Features ✨

Langchain

Other

Bug Fixes 🐛

Httpx

Langchain

Other

Internal Changes 🔧

Stdlib

Other

Other

2.59.0

04 May 12:19
689cb97

Choose a tag to compare

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

21 Apr 08:29

Choose a tag to compare

2.58.0a1 Pre-release
Pre-release

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

13 Apr 17:23

Choose a tag to compare

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

2.57.0

31 Mar 09:39
9790785

Choose a tag to compare

New Features ✨

Langchain

Other

Bug Fixes 🐛

Openai

Other

Internal Changes 🔧

Ai

Langchain

Openai

Other

2.52.0a9

26 Mar 13:30
a32c3bc

Choose a tag to compare

2.52.0a9 Pre-release
Pre-release

This is an alpha release for internal testing.

2.56.0

24 Mar 09:56

Choose a tag to compare

New Features ✨

Bug Fixes 🐛

Anthropic

Other

Documentation 📚

Internal Changes 🔧

  • Pin GitHub Actions to full-length commit SHAs by @joshuarli in #5781
  • Add -latest alias for each integration test suite by @sentrivana in #5706
  • Use date-based branch names for toxgen PRs by @sentrivana in #5704
  • 🤖 Update test matrix with new releases (03/19) by @github-actions in #5703
  • Add client report tests for span streaming by @sentrivana in #5677

Other