Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Propagator = propagation.NewCompositeTextMapPropagator( propagation.Baggage{}, propagation.TraceContext{}, )
Propagator ensures the importer module uses the same trace propagation strategy.
Functions ¶
func GetPropagator ¶
func GetPropagator() propagation.TextMapPropagator
GetPropagator gets a configured propagator.
func GetServiceTraceProvider ¶
func GetServiceTraceProvider(c ConfigConverter, serviceName string) (trace.TracerProvider, error)
GetServiceTraceProvider returns a configured open-telemetry trace provider.
func GetTraceProvider ¶
func GetTraceProvider(endpoint, collector, serviceName, traceType string) (*sdktrace.TracerProvider, error)
GetTraceProvider returns a configured open-telemetry trace provider.
Types ¶
type Config ¶
type Config struct {
Enabled bool `yaml:"enabled" env:"OC_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"`
Type string `` /* 197-byte string literal not displayed */
Endpoint string `yaml:"endpoint" env:"OC_TRACING_ENDPOINT" desc:"The endpoint of the tracing agent." introductionVersion:"1.0.0"`
Collector string `` /* 230-byte string literal not displayed */
}
Tracing defines the available tracing configuration.
type ConfigConverter ¶
type ConfigConverter interface {
Convert() Config
}
ConfigConverter is the interface for external configuration.
Click to show internal directories.
Click to hide internal directories.