otel

package
v0.6.18-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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:""`
}

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