docs(sdk): Add sentry.span_group develop docs#17277
Open
vgrozdanic wants to merge 2 commits intomasterfrom
Open
docs(sdk): Add sentry.span_group develop docs#17277vgrozdanic wants to merge 2 commits intomasterfrom
vgrozdanic wants to merge 2 commits intomasterfrom
Conversation
Document the sentry.span_group attribute namespace for logical grouping of spans across trace boundaries. Covers protocol, naming convention, baggage propagation, and SDK implementation. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
cleptric
reviewed
Apr 8, 2026
Comment on lines
+28
to
+29
| "sentry.span_group.conversation_id": "conv_88234", | ||
| "sentry.span_group.session_id": "sess_00192" |
Member
There was a problem hiding this comment.
Should likely specify the value used here, using uuids as for trace ids would work well, imo.
Member
Author
There was a problem hiding this comment.
Conversation id can be anything because it usually comes from the model provider (I believe OpenAI has ints as conversationId). I'll mention it.
For sessions, I'd rather not specify the exact value because that concept still requires more thinking and it is not yet fully defined how it will work, here I named it more as an example of how it would work under sentry.span_group, and until we have more details on it, I'd keep the value as vague/open as possible.
Conversation ID comes from the model provider and must be stringified. Session ID is early-phase and shown only as an example, not a definition. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Add develop docs for the
sentry.span_groupattribute namespace — a lightweight, extensible mechanism for logically grouping spans across trace boundaries.This is needed for AI conversations and user sessions, which don't map cleanly to a single trace (a conversation can span multiple traces, or multiple conversations can exist in one trace).
The doc covers:
sentry.span_group.<concept>_idnamespacebaggageheaderIS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: