otel

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupOTelSDK

func SetupOTelSDK(
	ctx context.Context,
	cfg Config,
	attributeStorage attributeStorage,
) (shutdown func(context.Context) error, err error)

SetupOTelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

Types

type Config

type Config struct {
	ServiceName   string
	OTelHost      string
	EnableMetrics bool
	EnableTracer  bool
	EnableLogger  bool
}

Jump to

Keyboard shortcuts

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