Skip to content
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
@pokryfka

Description

@pokryfka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions