Documentation ¶
Overview ¶
Package zipkin comprises Zipkin functionality for Zipkin compatibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v2.16.0
type Option func(propagator *Propagator)
Option is a function that sets an option on Propagator
func BaggagePrefix ¶ added in v2.16.0
BaggagePrefix is a function that sets baggage prefix on Propagator
type Propagator ¶
type Propagator struct {
// contains filtered or unexported fields
}
Propagator is an Injector and Extractor
func NewZipkinB3HTTPHeaderPropagator ¶
func NewZipkinB3HTTPHeaderPropagator(opts ...Option) Propagator
NewZipkinB3HTTPHeaderPropagator creates a Propagator for extracting and injecting Zipkin HTTP B3 headers into SpanContexts. Baggage is by default enabled and uses prefix 'baggage-'.
func (Propagator) Extract ¶
func (p Propagator) Extract(abstractCarrier interface{}) (jaeger.SpanContext, error)
Extract conforms to the Extractor interface for encoding Zipkin HTTP B3 headers
func (Propagator) Inject ¶
func (p Propagator) Inject( sc jaeger.SpanContext, abstractCarrier interface{}, ) error
Inject conforms to the Injector interface for decoding Zipkin HTTP B3 headers
Click to show internal directories.
Click to hide internal directories.