tracer

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UseProfileDefault is added path to http router for pprof on default for Config.UseProfile
	UseProfileDefault = true

	// UseProfileFieldName field name in configuration file or ENV name for value of Config.UseProfile
	UseProfileFieldName = "trace.pprof"

	// JaegerDSNFieldName field name in configuration file or ENV name for value of Config.JaegerDSN
	JaegerDSNFieldName = "trace.jaeger.dsn"
)

Variables

This section is empty.

Functions

func NewTrace

func NewTrace(config *Config, appConfig *app.Config, informer log.Informer) (trace.Tracer, error)

NewTrace creating and configuration instance of traceSdk.TracerProvider for send trace to Jaeger and return instance of trace.Tracer for application name

func WithConfigurator

func WithConfigurator(configurator configurator.Configurator, config *Config, appConfig *app.Config, informer log.Informer) (trace.Tracer, error)

Types

type Config

type Config struct {
	// UseProfile if true then added path to http router for pprof
	UseProfile bool

	// JaegerDSN Jaeger connection string
	JaegerDSN string
}

Config setup params for tracer

func NewConfig

func NewConfig() *Config

NewConfig creating and return new structure instance Config

Jump to

Keyboard shortcuts

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