Skip to main content

Module metrics

Module metrics 

Source
Expand description

OTLP metrics export for OpenTelemetry.

This module provides metrics export to OTLP collectors with support for different temporality modes and aggregation strategies.

Modules§

metric_attributes
Common metric attribute keys.
metric_names
Processor-specific metric names.

Structs§

ExportConfig
Metric export interval configuration.
MetricsConfig
Metrics configuration.
MetricsRecorder
Helper struct for recording metrics with common attributes.

Enums§

Temporality
Aggregation temporality for metrics.

Functions§

init_meter_provider
Initializes the global meter provider with OTLP exporter.
shutdown_meter_provider
Shuts down the global meter provider and flushes all pending metrics.