tracing

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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