Versions in this module Expand all Collapse all v0 v0.7.0 Jan 23, 2026 Changes in this version + const TraceparentHeader + const TracestateHeader + func ContextWithTraceContext(ctx context.Context, tc *TraceContext) context.Context + type TraceContext struct + SpanID string + TraceFlags byte + TraceID string + TraceState string + func FromContext(ctx context.Context) *TraceContext + func FromHTTPHeaders(headers http.Header) *TraceContext + func FromHTTPHeadersOrNew(headers http.Header) (*TraceContext, error) + func NewTraceContext() (*TraceContext, error) + func ParseTraceparent(header string) (*TraceContext, bool) + func (tc *TraceContext) IsSampled() bool + func (tc *TraceContext) SetHTTPHeaders(headers http.Header) + func (tc *TraceContext) ToTraceparent() string