tracing

package
v0.0.0-...-6e01b02 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SamplerTypeConst       = "const"
	SamplerTypeAdaptive    = "adaptive"
	SamplerTypeProbability = "probability"
	SamplerTypeRateLimit   = "rate-limit"
	SamplerTypeUnknown     = "unknown"
)
View Source
const (
	ReporterTypeNull    = "null"
	ReporterTypeRemote  = "remote"
	ReporterTypeLogging = "logging"
	ReporterTypeUnknown = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	InitFromViper(*viper.Viper)
	CreateTracer() (opentracing.Tracer, io.Closer)
}

type TracerFactory

type TracerFactory struct {
	// contains filtered or unexported fields
}

func NewTracerFactory

func NewTracerFactory(serviceName string, logger *zap.Logger) *TracerFactory

func (*TracerFactory) CreateTracer

func (t *TracerFactory) CreateTracer() (opentracing.Tracer, io.Closer)

func (*TracerFactory) InitFromViper

func (t *TracerFactory) InitFromViper(v *viper.Viper)

Jump to

Keyboard shortcuts

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