From 69fa2070f6f9b8df25e0c3579dda563d7af60a1a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:10:17 +0000 Subject: [PATCH] [skill-drift] update(sentry-python-sdk): stream_gen_ai_spans now defaults to True Automated drift-fix run. Co-Authored-By: Claude (claude-sonnet-4-5) --- skills/sentry-python-sdk/references/ai-monitoring.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/skills/sentry-python-sdk/references/ai-monitoring.md b/skills/sentry-python-sdk/references/ai-monitoring.md index 22be548a..6e570c15 100644 --- a/skills/sentry-python-sdk/references/ai-monitoring.md +++ b/skills/sentry-python-sdk/references/ai-monitoring.md @@ -10,7 +10,6 @@ Tracing must be enabled — AI spans require an active transaction: sentry_sdk.init( dsn="...", traces_sample_rate=1.0, - stream_gen_ai_spans=True, send_default_pii=True, ) ``` @@ -54,11 +53,11 @@ import sentry_sdk sentry_sdk.init( dsn="https://@.ingest.sentry.io/", traces_sample_rate=1.0, - stream_gen_ai_spans=True, send_default_pii=True, # required to capture prompts/outputs ) # OpenAI, Anthropic, LangChain, LangGraph, HuggingFace Hub activate automatically +# Note: stream_gen_ai_spans=True by default (SDK >=2.60.0) ``` ### Explicit configuration with `include_prompts` override @@ -71,7 +70,6 @@ from sentry_sdk.integrations.anthropic import AnthropicIntegration sentry_sdk.init( dsn="...", traces_sample_rate=1.0, - stream_gen_ai_spans=True, send_default_pii=True, integrations=[ OpenAIIntegration( @@ -92,7 +90,6 @@ from sentry_sdk.integrations.litellm import LiteLLMIntegration sentry_sdk.init( dsn="...", traces_sample_rate=1.0, - stream_gen_ai_spans=True, send_default_pii=True, integrations=[ LiteLLMIntegration(include_prompts=True), # 100+ providers via proxy @@ -255,7 +252,7 @@ This populates the **AI Agents Dashboard** in Sentry with per-agent latency, too Link AI spans across turns in a multi-turn conversation. Sentry groups spans by `gen_ai.conversation.id` into a chat-style timeline at **Explore > Conversations**. -**Prerequisites:** `stream_gen_ai_spans=True` (SDK >=2.60.0) and `send_default_pii=True` must be set — Conversations reconstructs the chat from input/output attributes, so without PII capture the view will be empty. +**Prerequisites:** SDK >=2.60.0 (span streaming enabled by default) and `send_default_pii=True` must be set — Conversations reconstructs the chat from input/output attributes, so without PII capture the view will be empty. ```python import sentry_sdk.ai