Options
All
  • Public
  • Public/Protected
  • All
Menu

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).

Hierarchy

  • SpanContext
    • SpanContext

Index

Methods

toSpanId

  • toSpanId(): string
  • Returns the string representation of the internal span ID.

    Returns string

toTraceId

  • toTraceId(): string
  • Returns the string representation of the internal trace ID.

    Returns string

Generated using TypeDoc