telemetry

package
v1.66.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package telemetry installs the process-wide OpenTelemetry providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, service string) (func(context.Context) error, error)

Setup installs tracing and metrics as the standard OTEL_* environment variables describe them, naming the process service unless OTEL_SERVICE_NAME does. A signal is exported only once its exporter or an OTLP endpoint is configured; setting OTEL_EXPORTER_OTLP_ENDPOINT alone exports both, and OTEL_TRACES_SAMPLER picks what is sampled. The returned function flushes and stops what was installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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