Help us shape the future of Go! Take the 2026 Go Developer Survey

otel

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const OTEL_ORCHESTRASTOR_SERVICE_NAME = "orchestrator"

Variables

This section is empty.

Functions

This section is empty.

Types

type OtelConfig

type OtelConfig struct {
	OtelCollectorUrl string `env:"OTEL_COLLECTOR_URL" envDefault:"" description:"Opentelemetry URL "`
}

type OtelTracingService

type OtelTracingService interface {
	Init(serviceName string) *sdktrace.TracerProvider
	Shutdown()
}

type OtelTracingServiceImpl

type OtelTracingServiceImpl struct {
	// contains filtered or unexported fields
}

func NewOtelTracingServiceImpl

func NewOtelTracingServiceImpl(logger *zap.SugaredLogger) *OtelTracingServiceImpl

func (OtelTracingServiceImpl) Init

func (impl OtelTracingServiceImpl) Init(serviceName string) *sdktrace.TracerProvider

Init configures an OpenTelemetry exporter and trace provider

func (OtelTracingServiceImpl) Shutdown

func (impl OtelTracingServiceImpl) Shutdown()

Jump to

Keyboard shortcuts

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