metrics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package metrics initializes the OpenTelemetry MeterProvider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

Init initializes the OTel MeterProvider based on OTEL_METRICS_EXPORTER.

  • "otlp": OTLP gRPC exporter to the provided endpoint
  • "" or "none": no metrics (returns noop shutdown)

Returns a ShutdownFunc to flush and close the provider.

Types

This section is empty.

Jump to

Keyboard shortcuts

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