This repository was archived by the owner on Apr 23, 2021. It is now read-only.
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Correct description of Span context, describe context propagation #126
Open
Description
I think the description is incorrect or I misunderstood it (in which case I'd like to fix it on my side).
public protocol Span {
/// The read-only `BaggageContext` of this `Span`, set when starting this `Span`.
var context: BaggageContext { get }
// ...
}
The way I understand it, the value of span.contex
is not the same as the context passed when creating (starting) the span.
It should propagate whatever was in the context BUT update the trace context (parent id).
Related question (separate issue?) is if NoOpSpan
should propagate context.
On my side NoOpSegment
does not record anything but pass along the context,
NoOpSpan
returns empty baggage:
public struct NoOpSpan: Span {
public var context: BaggageContext {
.init()
}
// ...
}
See also