propagation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	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