Skip to main content

normalize_trace_status

Function normalize_trace_status 

Source
pub fn normalize_trace_status(
    attributes: &mut Annotated<Attributes>,
    is_segment: &Annotated<bool>,
    status: &Annotated<SpanV2Status>,
)
Expand description

Sets the sentry.trace.status attribute on segment spans.

The value is derived from the sentry.status attribute if present, falling back to the span’s top-level status field.