tracing

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

func Shutdown

func Shutdown()

Types

type Attributes

type Attributes struct {
	ServiceName    string
	ServiceVersion string
	Extra          map[string]string
}

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

Jump to

Keyboard shortcuts

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