releases.shpreview

GenAI spans can now stream separately to avoid size limits

v2.60.0

From the original release noteView original ↗

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

Fetched May 13, 2026

GenAI spans can now stream separately to avoid size limits… — releases.sh