Class W3CTraceContextEncoding
java.lang.Object
io.opentelemetry.api.trace.propagation.internal.W3CTraceContextEncoding
Implementation of the
tracestate header encoding and decoding as defined by the W3C Trace Context
recommendation.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TraceStatedecodeTraceState(String traceStateHeader) Decodes a trace state header into aTraceStateobject.static StringencodeTraceState(TraceState traceState) Return the trace state encoded as a string according to the W3C specification.
-
Method Details
-
decodeTraceState
Decodes a trace state header into aTraceStateobject.- Throws:
IllegalArgumentException- iftraceStateHeaderdoes not comply with the specification
-
encodeTraceState
Return the trace state encoded as a string according to the W3C specification.
-