telemetry

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package telemetry initializes the OpenTelemetry tracer, meter, and log providers. Init returns a shutdown function and is a no-op when OTel is disabled in configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, cfg *config.OTelConfig) (func(context.Context) error, error)

Init initializes the global OpenTelemetry tracer, meter, and logger providers and returns a shutdown function. If cfg.Enabled is false it returns a no-op shutdown without touching globals.

Types

This section is empty.

Jump to

Keyboard shortcuts

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