Interface InMemorySpanContext
-
- All Superinterfaces:
io.opentracing.SpanContext
public interface InMemorySpanContext extends io.opentracing.SpanContextA span that allows reading values at runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisSampled()Returns whether the span should be sampled.default java.lang.StringtoSpanId()default java.lang.StringtoTraceId()InMemoryTraceStatetraceState()Get theInMemoryTraceStateassociated with this object.
-
-
-
Method Detail
-
traceState
InMemoryTraceState traceState()
Get theInMemoryTraceStateassociated with this object.- Returns:
- the
InMemoryTraceStateassociated 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:
toTraceIdin interfaceio.opentracing.SpanContext
-
toSpanId
default java.lang.String toSpanId()
- Specified by:
toSpanIdin interfaceio.opentracing.SpanContext
-
-