Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Tracer opentracing.Tracer = &opentracing.NoopTracer{}
Tracer is a global opentracing tracer. If the TRACING_ENABLED environment variable is set to false, it will default to a noop tracer.
Functions ¶
func ContextWithSpanContext ¶
func ContextWithSpanContext(ctx context.Context, spanContext opentracing.SpanContext) context.Context
ContextWithSpanContext returns a context that holds a reference to the given span context.
func NewTracer ¶
func NewTracer() (opentracing.Tracer, error)
NewTracer returns an jaeger implementation of an opentracing tracer.
func SpanContextFromContext ¶
func SpanContextFromContext(ctx context.Context) opentracing.SpanContext
SpanContextFromContext extracts a span context from the given context. The returned span context may be nil if there is no span context stored in the given context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.