otel

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Otel

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

func New

func New(ctx context.Context) (o *Otel, err error)

NewOtel bootstraps the OpenTelemetry pipeline using the autoexport package. All configuration is driven by standard OTEL environment variables (e.g. OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_TRACES_SAMPLER, OTEL_TRACES_SAMPLER_ARG, etc.). If it does not return an error, make sure to call Shutdown for proper cleanup.

func (*Otel) Shutdown

func (s *Otel) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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