tracing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 17 Imported by: ? modules, 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

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