Documentation ¶
Index ¶
Constants ¶
View Source
const ( TracePropagationHTTPHeader = "X-Honeycomb-Trace" TracePropagationVersion = 1 )
Variables ¶
This section is empty.
Functions ¶
func MarshalTraceContext ¶
func MarshalTraceContext(prop *Propagation) string
Types ¶
type Propagation ¶
func UnmarshalTraceContext ¶
func UnmarshalTraceContext(header string) (*Propagation, error)
func UnmarshalTraceContextV1 ¶
func UnmarshalTraceContextV1(header string) (*Propagation, error)
UnmarshalTraceContextV1 takes the trace header, stripped of the version string, and returns the component parts. Trace ID and Parent ID are both required. If either is absent a nil trace header will be returned.
type PropagationError ¶
type PropagationError struct {
// contains filtered or unexported fields
}
func (*PropagationError) Error ¶
func (p *PropagationError) Error() string
Click to show internal directories.
Click to hide internal directories.