telemetry

package
v1.123.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Directories

Path Synopsis
Package laps times the consecutive steps of one operation for its log line.
Package laps times the consecutive steps of one operation for its log line.

Jump to

Keyboard shortcuts

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