# Functions
Extract extracts the W3C trace context from HTTP headers.
FormStateWithInstanaTraceStateValue returns a new state prepended with the provided Instana value.
Inject adds the w3c trace context headers, overriding any previously set values.
New initializes a new W3C trace context from given parent.
NewState creates a new State with the given values.
ParseParent parses the value of `traceparent` header according to the version defined in the first field.
ParseState parses the value of `tracestate` header.
ParseVersion parses the version part of a `traceparent` header value.
TracingHandlerFunc is an HTTP middleware that forwards the W3C context found in request with the response.
# Constants
MaxStateEntries is the maximum number of items in `tracestate` as defined by https://www.w3.org/TR/trace-context/#tracestate-header-field-values.
TraceParentHeader is the W3C trace parent header name as defined by https://www.w3.org/TR/trace-context/.
TraceStateHeader is the W3C trace state header name as defined by https://www.w3.org/TR/trace-context/.
VendorInstana is the Instana vendor key in the `tracestate` list.
Version_0 represent the W3C Trace Context version 00.
Version_Invalid represend an invalid W3C Trace Context version.
Version_Max is the latest version of W3C Trace Context supported by this package.
# Variables
ErrContextCorrupted is an error retuned by w3ctrace.Extract() if provided HTTP headers contain W3C trace context in unexpected format.
ErrContextNotFound is an error retuned by w3ctrace.Extract() if provided HTTP headers does not contain W3C trace context.
ErrUnsupportedVersion is an error retuned by w3ctrace.Extract() if the version of provided W3C trace context is not supported.
# Structs
Context represents the W3C trace context.
Flags contains the trace flags as defined by https://www.w3.org/TR/trace-context/#trace-flags.
Parent represents trace parent extracted from `traceparent` header.
State is list of key=value pairs representing vendor-specific data in the trace context.
# Type aliases
Version represents the W3C trace context version.