com.dynatrace.oneagent.sdk.api.infos
Interface TraceContextInfo


public interface TraceContextInfo

Provides information about a PurePath node using the TraceContext (Trace-Id, Span-Id) model as defined in

Field Summary
static java.lang.String INVALID_SPAN_ID
          All-zero (invalid) W3C span ID.
static java.lang.String INVALID_TRACE_ID
          All-zero (invalid) W3C trace ID.
 
Method Summary
 java.lang.String getSpanId()
          The W3C span ID hex string (never empty or null, but might be all-zero if isValid()) is false)
 java.lang.String getTraceId()
          The W3C trace ID hex string (never empty or null, but might be all-zero if isValid()) is false)
 boolean isValid()
          If true, the trace & span ID are both valid (i.e., non-zero).
 

Field Detail

INVALID_TRACE_ID

static final java.lang.String INVALID_TRACE_ID
All-zero (invalid) W3C trace ID.

See Also:
Constant Field Values

INVALID_SPAN_ID

static final java.lang.String INVALID_SPAN_ID
All-zero (invalid) W3C span ID.

See Also:
Constant Field Values
Method Detail

isValid

boolean isValid()
If true, the trace & span ID are both valid (i.e., non-zero).

These are a few common reasons for why you may be unable to get a valid trace context:


getTraceId

java.lang.String getTraceId()
The W3C trace ID hex string (never empty or null, but might be all-zero if isValid()) is false)


getSpanId

java.lang.String getSpanId()
The W3C span ID hex string (never empty or null, but might be all-zero if isValid()) is false)