Skip to content

fix(core): Serialize streamed span status message to sentry.status.message attribute - #21811

Merged
Lms24 merged 5 commits into
developfrom
lms/fix-core-streaming-span-status-message
Jun 30, 2026
Merged

fix(core): Serialize streamed span status message to sentry.status.message attribute#21811
Lms24 merged 5 commits into
developfrom
lms/fix-core-streaming-span-status-message

Conversation

@Lms24

@Lms24 Lms24 commented Jun 26, 2026

Copy link
Copy Markdown
Member

Fixes a semi-deliberate oversight (lol) from my end that caused span status messages to be discarded when creating a StreamedSpanJSON from a Span instance. The deliberate part was to get rid of complicated statuses overall. The oversight was that there's a good use case to augment an error status span with a message: We sometimes want to record that an operation tracked by a span errored but explicitly not capture an error for it (since users likely try/catch said operation). Classic example is Connection Refused for databases.

closes #21800

Loading
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.

Handle span status message on streamed spans

3 participants