OTLP metrics exporter used by OtelBridge profiles.
This module centralizes exporter initialization, transport handling, and shutdown logic for profile-defined metric readers.
It is responsible for:
- combining explicit exporter options with standard OTLP environment variables
- initializing the underlying OTLP exporter state
- exporting metric payloads over HTTP protobuf or gRPC
- shutting down exporter-owned resources
HTTP protobuf exports use the standard OTLP timeout of 10_000 milliseconds.
OTEL_EXPORTER_OTLP_METRICS_TIMEOUT takes precedence over
OTEL_EXPORTER_OTLP_TIMEOUT, and both take precedence over :timeout_ms.
A value of 0 disables the timeout. Invalid or negative environment values
are logged and ignored.
The HTTP connection timeout defaults to 5_000 milliseconds and is capped by
the total export timeout. It can be overridden with :connect_timeout_ms.
These HTTP timeout options do not change gRPC transport behavior.
Summary
Functions
Exports metric payloads through the configured OTLP transport.
Initializes exporter state from explicit options plus standard OTLP environment variables.
Shuts down any exporter-owned network resources.
Functions
Exports metric payloads through the configured OTLP transport.
Initializes exporter state from explicit options plus standard OTLP environment variables.
Supported HTTP timeout options are :timeout_ms and :connect_timeout_ms.
Both accept a non-negative number of milliseconds or :infinity; 0 is
normalized to :infinity.
Shuts down any exporter-owned network resources.