tracing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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.

Jump to

Keyboard shortcuts

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