package traceparent
Import Path
go.pact.im/x/traces/traceparent (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
Package traceparent implements W3C Trace Context traceparent header parsing,
formatting, and propagation for [traces.SpanRef].
Package-Level Functions (total 5, in which 4 are exported)
Extract reads a W3C traceparent header using get (for example
[net/http.Header.Values]). It returns the zero [traces.SpanRef] if there is
no single valid traceparent header.
Format formats ref as a version 00 W3C traceparent header value.
Inject writes a W3C traceparent header for ref using set (for example
[net/http.Header.Set]). It does nothing if ref is invalid.
Parse parses a W3C traceparent header value.
Package-Level Variables (only one, which is exported)
ErrInvalid is returned by [Parse] for malformed traceparent headers.
Package-Level Constants (total 14, in which 1 is exported)
Header is the W3C Trace Context traceparent HTTP header name.
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)