tracing

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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