public final class TracingMetadata extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
hasParent()
Indicates if the parent's
spanId or if this the root span in a trace. |
boolean |
isDebug()
Indicates that trace IDs should be force traced.
|
boolean |
isDecided()
Indicated that sampling decision is present.
|
boolean |
isEmpty()
Includes that there is sampling information and no trace IDs.
|
boolean |
isSampled()
Indicates that trace IDs should be accepted for tracing.
|
long |
parentId()
Returns the parent's
spanId where zero implies absent. |
long |
spanId()
Unique 8-byte identifier of this span within a trace.
|
long |
traceId()
Unique 8-byte identifier for a trace, set on all spans within it.
|
long |
traceIdHigh()
When non-zero, the trace containing this span uses 128-bit trace identifiers.
|
public long traceIdHigh()
public long traceId()
public final boolean hasParent()
spanId
or if this the root span in a trace.public long parentId()
spanId
where zero implies absent.public long spanId()
public boolean isSampled()
public boolean isDebug()
public boolean isEmpty()
public boolean isDecided()
false
means that decision is unknown
and says explicitly that isDebug()
and isSampled()
also returns false
.