tracer

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

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() trace.Tracer

func InitProvider

func InitProvider(cfg *Config) (*tracesdk.TracerProvider, error)

Types

type Config

type Config struct {
	OtelCollectorEndpoint    string
	OtelCollectorTLSCertFile string
	OtelCollectorTLSKeyFile  string

	JaegerCollectorEndpoint string
	SamplingRatio           float64
}

Config represents a tracing configuration used upon initialization.

func ParseFlags

func ParseFlags(fs *flag.FlagSet, cfg *Config) *Config

ParseFlags parses the configuration flags for tracing.

func (Config) CanExportTraces

func (c Config) CanExportTraces() bool

CanExportTraces checks if we have the necessary configurations to export traces telemetry.

Jump to

Keyboard shortcuts

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