propagation

package module
v0.0.0-...-0506bab Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 4 Imported by: 3

README

opencensus-propagation

OpenCensus context propagation

Documentation

Index

Constants

View Source
const (
	HeaderTraceID      = "Trace-Id"
	HeaderTraceOptions = "Trace-Options"
	HeaderSpanID       = "Span-Id"
)

Variables

This section is empty.

Functions

func Extract

func Extract(format Format, carrier interface{}) (trace.SpanContext, error)

func Inject

func Inject(spanCtx trace.SpanContext, format Format, carrier interface{})

Types

type Format

type Format uint8
const (
	FormatBinary Format = iota
	FormatTextMap
)

type HTTPHeader

type HTTPHeader http.Header

func (HTTPHeader) ForeachKey

func (h HTTPHeader) ForeachKey(handler func(key, val string) error) error

func (HTTPHeader) Set

func (h HTTPHeader) Set(key, value string)

type TextMap

type TextMap interface {
	Set(key string, value string)
	ForeachKey(func(key string, value string) error) error
}

Jump to

Keyboard shortcuts

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