Contents
class solace.TraceContext
Abstract constructor for readonly view on metadata used for distributed message tracing.
Constructor Top
TraceContext ( TraceContextSetter traceContextSetter ) |
Properties Top
isSampled | |||
MAX_TRACE_STATE_LENGTH | |||
spanId | |||
traceId | |||
traceState | |||
version |
Static Methods Top
TraceContext | clone ( TraceContext toClone ) |
Methods Top
Uint8Array | getEncodedTraceContext ( ) | |
Boolean | getIsSampled ( ) | |
String | getSpanId ( ) | |
String | getTraceId ( ) | |
String | getTraceState ( ) | |
String | getTruncatedTraceState ( ) | |
Number | getVersion ( ) | |
void | toString ( ) |
Constructor details
Top
TraceContext
( TraceContextSetter traceContextSetter )
Abstract constructor for readonly view on metadata used
for distributed message tracing.
Abstract constructor for readonly view on metadata used for distributed message tracing.
Static Methods Detail Top
static
public
TraceContext
clone
( TraceContext toClone )
Clone the a TraceContext object used for distributed message tracing.
Properties Detail Top
public
isSampled
The isSampled boolean property
public
MAX_TRACE_STATE_LENGTH
The maximum allowed string size of trace state to propagate.
Refer: https://www.w3.org/TR/trace-context/#tracestate-limits
public
spanId
The spanId property a 8-length string
public
traceId
The tranceId property as a 16-length string
public
traceState
The traceState property
public
version
The version which for now is 1.
Methods Detail Top
public
Uint8Array
getEncodedTraceContext
( )
It returns the encoded bytes that is passed to the SMF header to be encoded in SMF for the message.
public
Boolean
getIsSampled
( )
Returns true if the sampling for the associated message is on, otherwise false.
public
String
getSpanId
( )
Gets the value of the span identifier associated with the message.
public
String
getTraceId
( )
Gets the value of the trace identifier associated with the message.
public
String
getTraceState
( )
Gets the value of the trace state associated with the message.
public
String
getTruncatedTraceState
( )
Gets the value of the trace state associated with the message.
public
Number
getVersion
( )
Gets the version associated with the message trace.
public
void
toString
( )
Returns the string representation of this object