Interface InMemorySpanContext
-
- All Superinterfaces:
io.opentracing.SpanContext
public interface InMemorySpanContext extends io.opentracing.SpanContext
A span that allows reading values at runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isSampled()
Returns whether the span should be sampled.default java.lang.String
toSpanId()
default java.lang.String
toTraceId()
InMemoryTraceState
traceState()
Get theInMemoryTraceState
associated with this object.
-
-
-
Method Detail
-
traceState
InMemoryTraceState traceState()
Get theInMemoryTraceState
associated with this object.- Returns:
- the
InMemoryTraceState
associated with this object.
-
isSampled
default boolean isSampled()
Returns whether the span should be sampled.Note this may differ from
InMemoryTraceState.isSampled()
fromtraceState()
if the value is overridden based upon some sampling policy.- Returns:
- whether the span should be sampled
-
toTraceId
default java.lang.String toTraceId()
- Specified by:
toTraceId
in interfaceio.opentracing.SpanContext
-
toSpanId
default java.lang.String toSpanId()
- Specified by:
toSpanId
in interfaceio.opentracing.SpanContext
-
-