Interface InMemoryTraceState
-
- All Known Subinterfaces:
InMemorySpan
- All Known Implementing Classes:
DefaultInMemoryTraceState
public interface InMemoryTraceState
Utility for representing a Ziplin-like trace state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isSampled()
Determine if this state is sampled.java.lang.String
parentSpanIdHex()
The hex representation of the parent's spanId.java.lang.String
spanIdHex()
The hex representation of the traceId.java.lang.String
traceIdHex()
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
null
if there is no parent.
-
isSampled
boolean isSampled()
Determine if this state is sampled.- Returns:
true
if this state is sampled.
-
-