propagation

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

type Propagation struct {
	TraceID      string
	ParentID     string
	Dataset      string
	TraceContext map[string]interface{}
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL