Package io.micrometer.tracing
Interface TraceContext
public interface TraceContext
Contains trace and span data.
- Since:
- 1.0.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
traceId
String traceId()Trace id.- Returns:
- trace id of a span
-
parentId
Parent span id.- Returns:
- parent span id or
nullif one is not set
-
spanId
String spanId()Span id.- Returns:
- span id
-
sampled
Boolean sampled()- Returns:
truewhen sampled,falsewhen not sampled andnullwhen sampling decision should be deferred
-