- All Known Subinterfaces:
- NoopSpanBuilder, NoopSpanContext
- All Known Implementing Classes:
- MockSpan.MockContext
public interface SpanContext
SpanContext represents Span state that must propagate to descendant Spans and across process boundaries.
SpanContext is logically divided into two pieces: (1) the user-level "Baggage" that propagates across Span
boundaries and (2) 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).
- See Also:
BaseSpan.setBaggageItem(String, String),
BaseSpan.getBaggageItem(String)