Skip to content

docs: Highlight that scope tags are not applied to streamed spans - #23904

Open
chargome wants to merge 1 commit into
developfrom
tags-limitation-highlight
Open

docs: Highlight that scope tags are not applied to streamed spans#23904
chargome wants to merge 1 commit into
developfrom
tags-limitation-highlight

Conversation

@chargome

@chargome chargome commented Sep 2, 2026

Copy link
Copy Markdown
Member

Hoists the "scope tags and extra are not applied to streamed spans" note out of the beforeSendTransaction section into its own subsection of the v11 span streaming migration guide, with setTag(s)setAttribute(s) examples, since the behaviour affects everyone and fails silently.

The v11 migration guide only mentioned this in a trailing note inside the
`beforeSendTransaction` section, where users who never used that option
would not look. Give it its own subsection with before/after examples,
since it silently affects every app that enriches transactions with tags.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hyk7rMtFEFUgLnS5YYekxJ
@chargome
chargome marked this pull request as ready for review September 2, 2026 08:44
@chargome
chargome enabled auto-merge (squash) September 2, 2026 09:51
Comment thread MIGRATION.md
#### Scope `tags` and `extra` are not applied to spans

Streamed spans only carry attributes, so scope `tags` and `extra` (set via `Sentry.setTag(s)`, `Sentry.setExtra(s)` or the equivalent scope methods) are no longer applied to spans.
This affects every span, including the segment span that replaced the transaction, and the SDK does not warn about it: the data is simply missing from your spans.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
This affects every span, including the segment span that replaced the transaction, and the SDK does not warn about it: the data is simply missing from your spans.
This affects every span, including the segment span that replaced the transaction.

l: Seems over the top/not needed

Comment thread MIGRATION.md
Streamed spans only carry attributes, so scope `tags` and `extra` (set via `Sentry.setTag(s)`, `Sentry.setExtra(s)` or the equivalent scope methods) are no longer applied to spans.
This affects every span, including the segment span that replaced the transaction, and the SDK does not warn about it: the data is simply missing from your spans.

Tags and extra still apply to errors, so you don't have to remove them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: Could we add an example for what is ok to keep?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants