com.ccadllc.cedi.dtrace.interop.xb3
Decodes a SpanId
from
XB3/Zipkin-compliant
HTTP headers (or single compressed b3
header if present).
Decodes a SpanId
from
XB3/Zipkin-compliant
HTTP headers (or single compressed b3
header if present).
The properties
argument is not currently used with this function.
Encodes X-B3-compliant
HTTP headers from the passed-in SpanId
.
Encodes X-B3-compliant
HTTP headers from the passed-in SpanId
.
Note: A single b3
compressed header will be generated combining the traceId
, spanId
and parentSpanId
when this function is called using the form:
xb3HeaderCodec.encode(spanId, Map(XB3HeaderCodec.Compressed -> "true"))
Note: The X-B3-Sampled
Header will be set to "0" if called with the below form (where it might be combined
with with Compressed
as shown above, in which case the sampled section of the compressed header will
be set to "0"). Otherwise the X-B3-Sampled
header (or sampled section of compressed header) will be
set to "1"
xb3HeaderCodec.encode(spanId, Map(XB3HeaderCodec.Sampled -> "false"))
(Since version ) see corresponding Javadoc for more information.
Implements the
HeaderCodec
trait, providing for the encoding and decoding of X-B3-style tracing HTTP headers into and from aSpanId
respectively.