jaegertracing

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultTracer

func NewDefaultTracer() (opentracing.Tracer, io.Closer)

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

func BaggagePrefix(prefix string) Option

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

Jump to

Keyboard shortcuts

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