Top Description Fields Constructors Methods
io.rsocket.metadata

public final Class TracingMetadata

extends Object
Class Inheritance

Represents decoded tracing metadata which is fully compatible with Zipkin B3 propagation
Since
1.0

Field Summary

Modifier and TypeField and Description
private final boolean
pack-priv final boolean
pack-priv final boolean
pack-priv final boolean
pack-priv final boolean
pack-priv final long
pack-priv final long
pack-priv final long
pack-priv final long

Constructor Summary

AccessConstructor and Description
pack-priv
TracingMetadata(long traceIdHigh, long traceId, long spanId, boolean hasParentId, long parentId, boolean isEmpty, boolean isNotSampled, boolean isSampled, boolean isDebug)

Method Summary

Modifier and TypeMethod and Description
public final boolean
hasParent()

Indicates if the parent's spanId or if this the root span in a trace.

public boolean
isDebug()

Indicates that trace IDs should be force traced.

public boolean
isDecided()

Indicated that sampling decision is present.

public boolean
isEmpty()

Includes that there is sampling information and no trace IDs.

public boolean
isSampled()

Indicates that trace IDs should be accepted for tracing.

public long
parentId()

Returns the parent's spanId where zero implies absent.

public long
spanId()

Unique 8-byte identifier of this span within a trace.

public long
traceId()

Unique 8-byte identifier for a trace, set on all spans within it.

public long
traceIdHigh()

When non-zero, the trace containing this span uses 128-bit trace identifiers.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hasParentIdback to summary
private final boolean hasParentId
isDebugback to summary
pack-priv final boolean isDebug
isEmptyback to summary
pack-priv final boolean isEmpty
isNotSampledback to summary
pack-priv final boolean isNotSampled
isSampledback to summary
pack-priv final boolean isSampled
parentIdback to summary
pack-priv final long parentId
spanIdback to summary
pack-priv final long spanId
traceIdback to summary
pack-priv final long traceId
traceIdHighback to summary
pack-priv final long traceIdHigh

Constructor Detail

TracingMetadataback to summary
pack-priv TracingMetadata(long traceIdHigh, long traceId, long spanId, boolean hasParentId, long parentId, boolean isEmpty, boolean isNotSampled, boolean isSampled, boolean isDebug)

Method Detail

hasParentback to summary
public final boolean hasParent()

Indicates if the parent's spanId or if this the root span in a trace.

isDebugback to summary
public boolean isDebug()

Indicates that trace IDs should be force traced.

isDecidedback to summary
public boolean isDecided()

Indicated that sampling decision is present. If false means that decision is unknown and says explicitly that isDebug() and isSampled() also returns false.

isEmptyback to summary
public boolean isEmpty()

Includes that there is sampling information and no trace IDs.

isSampledback to summary
public boolean isSampled()

Indicates that trace IDs should be accepted for tracing.

parentIdback to summary
public long parentId()

Returns the parent's spanId where zero implies absent.

spanIdback to summary
public long spanId()

Unique 8-byte identifier of this span within a trace.

A span is uniquely identified in storage by (traceId, spanId).

traceIdback to summary
public long traceId()

Unique 8-byte identifier for a trace, set on all spans within it.

traceIdHighback to summary
public long traceIdHigh()

When non-zero, the trace containing this span uses 128-bit trace identifiers.