public interface SpanContext
Context of a tracing 
Span.- 
Method Summary
Modifier and TypeMethodDescriptionvoidasParent(Span.Builder<?> spanBuilder) Configure this context as a parent of the provided builder.baggage()Returns the baggage extractable from the span context.spanId()Span ID of the associated span.traceId()Trace ID of the associated span. 
- 
Method Details
- 
traceId
String traceId()Trace ID of the associated span.- Returns:
 - trace id
 
 - 
spanId
String spanId()Span ID of the associated span.- Returns:
 - span id
 
 - 
asParent
Configure this context as a parent of the provided builder.- Parameters:
 spanBuilder- span builder to update, it will be a child of this span context
 - 
baggage
Baggage baggage()Returns the baggage extractable from the span context.- Returns:
 Baggageinstance; empty if no baggage is available from the span context
 
 -