Interface InMemoryTraceState
-
- All Known Subinterfaces:
InMemorySpan
- All Known Implementing Classes:
DefaultInMemoryTraceState
public interface InMemoryTraceStateUtility for representing a Ziplin-like trace state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisSampled()Determine if this state is sampled.java.lang.StringparentSpanIdHex()The hex representation of the parent's spanId.java.lang.StringspanIdHex()The hex representation of the traceId.java.lang.StringtraceIdHex()The hex representation of the traceId.
-
-
-
Method Detail
-
traceIdHex
java.lang.String traceIdHex()
The hex representation of the traceId.- Returns:
- hex representation of the traceId.
-
spanIdHex
java.lang.String spanIdHex()
The hex representation of the traceId.- Returns:
- hex representation of the traceId.
-
parentSpanIdHex
@Nullable java.lang.String parentSpanIdHex()
The hex representation of the parent's spanId.- Returns:
- hex representation of the parent's spanId, or
nullif there is no parent.
-
isSampled
boolean isSampled()
Determine if this state is sampled.- Returns:
trueif this state is sampled.
-
-