tracing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOp = Config{Provider: None}

Functions

func NewTracerProvider

func NewTracerProvider(confService driver.ConfigService) (trace.TracerProvider, error)

func NewTracerProviderFromConfig

func NewTracerProviderFromConfig(c Config) (trace.TracerProvider, error)

func NewWrappedTracerProvider

func NewWrappedTracerProvider(tp trace.TracerProvider) trace.TracerProvider

Types

type Config

type Config struct {
	Provider TracerType     `mapstructure:"provider"`
	File     FileConfig     `mapstructure:"file"`
	Otpl     OtplConfig     `mapstructure:"optl"`
	Sampling SamplingConfig `mapstructure:"sampling"`
}

type FileConfig

type FileConfig struct {
	Path string `mapstructure:"path"`
}

type OtplConfig

type OtplConfig struct {
	Address string `mapstructure:"address"`
}

type SamplingConfig

type SamplingConfig struct {
	Ratio float64 `mapstructure:"ratio"`
}

type TracerType

type TracerType string
const (
	None        TracerType = "none"
	Otpl        TracerType = "otpl"
	File        TracerType = "file"
	Console     TracerType = "console"
	ServiceName            = "FSC"
)

Jump to

Keyboard shortcuts

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