[skill-drift] update(sentry-python-sdk): stream_gen_ai_spans now defaults to True#227
Open
github-actions[bot] wants to merge 1 commit into
Conversation
…ults to True Automated drift-fix run. Co-Authored-By: Claude (claude-sonnet-4-5) <noreply@anthropic.com>
Comment on lines
58
to
+60
|
|
||
| # OpenAI, Anthropic, LangChain, LangGraph, HuggingFace Hub activate automatically | ||
| # Note: stream_gen_ai_spans=True by default (SDK >=2.60.0) |
There was a problem hiding this comment.
Bug: The documentation fix is incomplete. SKILL.md still requires stream_gen_ai_spans=True for Python, contradicting the update in ai-monitoring.md which states it's now the default.
Severity: LOW
Suggested Fix
Update skills/sentry-setup-ai-monitoring/SKILL.md (specifically lines 196, 332, and 418) to reflect that stream_gen_ai_spans is enabled by default in Python SDK >= 2.60.0. Remove the instruction that it is an explicitly required setting.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: skills/sentry-python-sdk/references/ai-monitoring.md#L58-L60
Potential issue: This pull request aims to update documentation to reflect that
`stream_gen_ai_spans` defaults to `True` in the Python SDK version 2.60.0 and later.
While `ai-monitoring.md` is correctly updated,
`skills/sentry-setup-ai-monitoring/SKILL.md` was not. This second file continues to
instruct users that setting `stream_gen_ai_spans=True` is explicitly required. This
creates conflicting guidance for users, leading to confusion and the addition of
redundant configuration. The fix is incomplete and introduces a documentation
inconsistency.
Also affects:
skills/sentry-setup-ai-monitoring/SKILL.md:196skills/sentry-setup-ai-monitoring/SKILL.md:332skills/sentry-setup-ai-monitoring/SKILL.md:418
Did we get this right? 👍 / 👎 to inform future reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Auto-generated from external SDK content. Review all links and code suggestions before acting on them.
Summary
PR getsentry/sentry-python#6658 changed
stream_gen_ai_spansfrom opt-in to opt-out (now defaults toTruein SDK >=2.60.0). The AI monitoring reference was incorrectly showing it as a required explicit setting in all code examples.Changes
stream_gen_ai_spans=Truefrom all code examples (redundant, as it's now the default)Impact
Low-risk documentation fix. No breaking changes to user workflows — the skill now correctly reflects that users don't need to explicitly set this option.
Reviewed PRs
stream_gen_ai_spansopt out sentry-python#6658: Make stream_gen_ai_spans opt-out (merged 2026-06-29)Source PRs
stream_gen_ai_spansopt out