Interface SpanContext

SpanContext represents Span state that must propagate to descendant Spans and across process boundaries.

SpanContext is logically divided into two pieces: the user-level "Baggage" (see setBaggageItem and getBaggageItem) that propagates across Span boundaries and any Tracer-implementation-specific fields that are needed to identify or otherwise contextualize the associated Span instance (e.g., a <trace_id, span_id, sampled> tuple).

interface SpanContext {
    toSpanId(): string;
    toTraceId(): string;
    toTraceparent(): string;
}

Hierarchy

  • SpanContext
    • SpanContext

Methods

  • Returns the string representation of the internal span ID.

    Returns string

  • Returns the string representation of the internal trace ID.

    Returns string

  • Returns the string representation used for DBM integration.

    Returns string

Generated using TypeDoc