Interface SpanContext
@StableApi
public interface SpanContext
-
Field Details
-
EXEMPLAR_ATTRIBUTE_NAME
- See Also:
-
EXEMPLAR_ATTRIBUTE_VALUE
- See Also:
-
-
Method Details
-
getCurrentTraceId
-
getCurrentSpanId
-
isCurrentSpanSampled
boolean isCurrentSpanSampled()- 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 Exemplar sampling process
-
markCurrentSpanAsExemplar
void markCurrentSpanAsExemplar()
-