Documentation ¶
Index ¶
- type Config
- func (config *Config) Build(options ...Option) trace.TracerProvider
- func (config *Config) Stop() error
- func (config *Config) WithOtlpResourceOption(options ...resource.Option) *Config
- func (config *Config) WithOtlpTraceGrpcOption(options ...otlptracegrpc.Option) *Config
- func (config *Config) WithTracerProviderOption(options ...tracesdk.TracerProviderOption) *Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServiceName string OtelType string // type: otlp ,jaeger Fraction float64 // 采样率: 默认0不会采集 PanicOnError bool Jaeger jaegerConfig // otel jaeger 配置 Otlp otlpConfig // otel otlp 配置 // contains filtered or unexported fields }
Config ...
func Load ¶
Load parses container configuration from configuration provider, such as a toml file, then use the configuration to construct a component container.
func (*Config) Build ¶
func (config *Config) Build(options ...Option) trace.TracerProvider
Build ...
func (*Config) WithOtlpResourceOption ¶
WithOtlpResourceOption 自定义otlp resource Option
func (*Config) WithOtlpTraceGrpcOption ¶
func (config *Config) WithOtlpTraceGrpcOption(options ...otlptracegrpc.Option) *Config
WithOtlpTraceGrpcOption 自定义otlp Option
func (*Config) WithTracerProviderOption ¶
func (config *Config) WithTracerProviderOption(options ...tracesdk.TracerProviderOption) *Config
WithTracerProviderOption ...
Click to show internal directories.
Click to hide internal directories.