package
0.0.0-20181129014701-1757c391b1ac
Repository: https://github.com/lightstep/tracecontext.go.git
Documentation: pkg.go.dev
# Functions
Parse attempts to decode a `TraceParent` from a byte array.
ParseString attempts to decode a `TraceParent` from a string.
# Constants
Version represents the maximum `traceparent` header version that is fully supported.
# Variables
ErrInvalidFormat occurs when the format is invalid, such as if there are missing characters or a field contains an unexpected character set.
ErrInvalidSpanID occurs when the encoded span ID is invalid, i.e., all bytes are 0.
ErrInvalidTraceID occurs when the encoded trace ID is invalid, i.e., all bytes are 0.
ErrInvalidVersion occurs when the encoded version is invalid, i.e., is 255.
# Structs
Flags contain recommendations from the caller relevant to the whole trace, e.g., for sampling.
TraceParent indicates information about a span and the trace of which it is part, so that child spans started in the same trace may propagate necessary data and share relevant behaviour.