-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(core): Serialize streamed span status message to sentry.status.message attribute
#21811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,16 @@ export const SEMANTIC_ATTRIBUTE_SENTRY_OP = 'sentry.op'; | |
| */ | ||
| export const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = 'sentry.origin'; | ||
|
|
||
| /** | ||
| * Holds the human-readable span status message (e.g. set via | ||
| * `span.setStatus({ code, message })`). | ||
| * | ||
| * Streamed (v2) span statuses are reduced to `ok`/`error`, so we preserve the | ||
| * message as an attribute instead of dropping it. This mirrors the attribute | ||
| * Sentry's OTLP ingestion uses for the same purpose. | ||
| */ | ||
| export const SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE = 'sentry.status.message'; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: I know core doesn't have
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, we need to add conventions to core. |
||
|
|
||
| /** The reason why an idle span finished. */ | ||
| export const SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON = 'sentry.idle_span_finish_reason'; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.