Documentation
¶
Index ¶
Constants ¶
View Source
const ( NVOTELProdTracerEndpoint = "prod.otel.kaizen.nvidia.com:8282" NVOTELStageTracerEndpoint = "otel.example.com:8282" AccessTokenHeaderLightstep = "lightstep-access-token" )
Variables ¶
This section is empty.
Functions ¶
func SetupOTELTracer ¶
func SetupOTELTracer(cfg *OTELConfig) (trace.TracerProvider, error)
SetupOTELTracer sets up opentracing compliant tracer per config Currently, we only support lightstep tracer setup
Types ¶
type Attributes ¶
Attributes defines trace attributes to add to the tracer
type OTELConfig ¶
type OTELConfig struct {
Enabled bool
Endpoint string
AccessToken string //nolint:gosec // G117: false positive - this is a configuration struct
Insecure bool
Attributes Attributes `mapstructure:"-"`
SpanProcessorWrapper func(sdktrace.SpanProcessor) sdktrace.SpanProcessor
}
OTELConfig holds OTEL tracing related info
Click to show internal directories.
Click to hide internal directories.