Interface InMemorySpanContext
- All Superinterfaces:
io.opentracing.SpanContext
- All Known Implementing Classes:
DefaultInMemorySpanContext
public interface InMemorySpanContext
extends io.opentracing.SpanContext
A span that allows reading values at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionReturns whether the span should be sampled ornull
if the sampling was not decided.Returns the parent span ID in hex, ornull
if the parent span ID is not present.Methods inherited from interface io.opentracing.SpanContext
baggageItems, toSpanId, toTraceId
-
Method Details
-
isSampled
Returns whether the span should be sampled ornull
if the sampling was not decided.- Returns:
- whether the span should be sampled
-
parentSpanId
Returns the parent span ID in hex, ornull
if the parent span ID is not present.- Returns:
- parent span ID in hex
-