Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTracer ¶
func NewTracer ¶
func NewTracer(ctx *bootstrap.ApplicationContext, jp *tracing.JaegerProperties, sp *tracing.SamplerProperties) (opentracing.Tracer, io.Closer)
Types ¶
type Option ¶
type Option func(propagator *Propagator)
Option is a function that sets an option on Propagator
func BaggagePrefix ¶
BaggagePrefix is a function that sets baggage prefix on Propagator
func SingleHeader ¶
func SingleHeader() Option
type Propagator ¶
type Propagator struct {
// contains filtered or unexported fields
}
Propagator is an extension of zipkin.Propagator that support Single Header propagation: See https://github.com/openzipkin/b3-propagation#single-header
func NewZipkinB3Propagator ¶
func NewZipkinB3Propagator(opts ...Option) *Propagator
NewZipkinB3Propagator creates a Propagator for extracting and injecting Zipkin 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 B3 headers
Click to show internal directories.
Click to hide internal directories.