jaeger

package
v0.0.0-...-efcda9a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultLogger is the default Jaeger logger.
	DefaultLogger = jaeger.StdLogger

	// DefaultMetrics is the default Jaeger metrics factory.
	DefaultMetrics = metrics.NullFactory
)

Functions

func NewTracer

func NewTracer(opts ...Option) (opentracing.Tracer, io.Closer, error)

NewTracer returns a new Jaeger tracer based on the current configuration, using the given options, and a closer func that can be used to flush buffers before shutdown.

Types

type Option

type Option func(o *Options)

Option manipulates the passed Options struct.

func FromEnv

func FromEnv(e bool) Option

FromEnv determines whether the Jaeger tracer configuration should use environment variables.

func GlobalTracer

func GlobalTracer(e bool) Option

GlobalTracer determines whether the Jaeger tracer should be set as the global tracer.

func Logger

func Logger(l jaeger.Logger) Option

Logger sets the logger for the Jaeger tracer.

func Metrics

func Metrics(m metrics.Factory) Option

Metrics sets the metrics factory for the Jaeger tracer.

func Name

func Name(s string) Option

Name sets the service name for the Jaeger tracer.

type Options

type Options struct {
	Name         string
	FromEnv      bool
	GlobalTracer bool
	Logger       jaeger.Logger
	Metrics      metrics.Factory
}

Options represents the options passed to the Jaeger tracer.

Jump to

Keyboard shortcuts

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