Documentation ¶
Index ¶
- Variables
- func Get(sp view.ServiceProvider) trace.TracerProvider
- func NewTracerProvider(confService driver.ConfigService) (trace.TracerProvider, error)
- func NewTracerProviderFromConfig(c Config) (trace.TracerProvider, error)
- func NewWrappedTracerProvider(tp trace.TracerProvider) trace.TracerProvider
- type Config
- type FileConfig
- type OtplConfig
- type SamplingConfig
- type TracerType
Constants ¶
This section is empty.
Variables ¶
View Source
var NoOp = Config{Provider: None}
Functions ¶
func Get ¶
func Get(sp view.ServiceProvider) trace.TracerProvider
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" )
Click to show internal directories.
Click to hide internal directories.