CloudTraceFormatter
class CloudTraceFormatter implements FormatterInterface
This format using a human readable string encoding to propagate SpanContext.
The current format of the header is <trace-id>[/<span-id>][;o=<options>]
.
The options are a bitmask of options. Currently the only option is the
least significant bit which signals whether the request was traced or not
(1 = traced, 0 = not traced).
Constants
CONTEXT_HEADER_FORMAT |
|
Methods
deserialize(string $header)
Generate a SpanContext object from the Trace Context header
string
Details
at line 39
SpanContext
deserialize(string $header)
Generate a SpanContext object from the Trace Context header
at line 60
string
serialize(SpanContext $context)
Convert a SpanContext to header string