Skip to content

Handle span status message on streamed spans #21800

Description

@Lms24

Currently, Sentry SDKs (and instrumentation) can add a span status message to spans via

span.setStatus({code: SpanStatus.ERROR, message: 'Connection Refused'});

Our current span v2 serialization logic discards the message property, following our push to have as simple span statuses as possible (ok and error only).

Suggested solution:

We reuse the sentry.status.message attribute that we already use for the exact same case in our OTLP ingestion endpoint. This is essentially the same use case.

Activity

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

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update javascript code

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions