Interface SpanContextSupplier
-
public interface SpanContextSupplier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getSpanId()
java.lang.String
getTraceId()
boolean
isSampled()
-
-
-
Method Detail
-
getTraceId
java.lang.String getTraceId()
- Returns:
- the current trace id, or
null
if this call is not happening within a span context.
-
getSpanId
java.lang.String getSpanId()
- Returns:
- the current span id, or
null
if this call is not happening within a span context.
-
isSampled
boolean isSampled()
- Returns:
- the state of the current Span. If this value is false a component before in the chain take the decision to not record it. Subsequent calling service have to respect this value in order not to have partial TraceID with only some Span in it. This value is important to be sure to choose a recorded Trace in Examplar sampling process
-
-