Skip to content

[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
mainfrom
skill-drift/sentry-python-sdk-skill-drift-update-sentry-python-sdk-str-1782742217
Open

[skill-drift] update(sentry-python-sdk): stream_gen_ai_spans now defaults to True#227
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/sentry-python-sdk-skill-drift-update-sentry-python-sdk-str-1782742217

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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_spans from opt-in to opt-out (now defaults to True in SDK >=2.60.0). The AI monitoring reference was incorrectly showing it as a required explicit setting in all code examples.

Changes

  • Removed stream_gen_ai_spans=True from all code examples (redundant, as it's now the default)
  • Added clarifying comment noting it's enabled by default in SDK >=2.60.0
  • Updated conversation tracking prerequisites to reflect the default behavior

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

Source PRs

…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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:196
  • skills/sentry-setup-ai-monitoring/SKILL.md:332
  • skills/sentry-setup-ai-monitoring/SKILL.md:418

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants