Skip to content

Trace Context Status is Unknown #6230

@philipphofmann

Description

@philipphofmann

Description

When the SDK serializes the trace context to puts it onto the scope

- (NSDictionary *)buildTraceContext:(nullable id<SentrySpan>)span
{
if (span != nil) {
return [SENTRY_UNWRAP_NULLABLE_VALUE(id<SentrySpan>, span) serialize];
} else {
return [self.propagationContext traceContextForEvent];
}
}

if (self.status != kSentrySpanStatusUndefined) {
[mutableDictionary setValue:nameForSentrySpanStatus(self.status) forKey:@"status"];
}

the default status is unkown when the trace didn't finish yet.

Image

This confuses users when looking at the trace details when looking at events in Sentry, because they wonder why it's unknown. We need to figure out if this is by design and if yes, we should fix it to avoid user confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions