Expand description
Configuration loading and management.
This module provides layered configuration for the extension using figment. Configuration is loaded from (in order of priority):
- Default values (compiled in)
- Config file:
/var/task/otel-extension.toml(optional) - Standard OpenTelemetry environment variables (
OTEL_*) - Extension-specific environment variables (
LAMBDA_OTEL_*)
§Supported Standard Environment Variables
The following standard OpenTelemetry environment variables are supported:
| Variable | Config Path | Description |
|---|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | exporter.endpoint | OTLP endpoint URL |
OTEL_EXPORTER_OTLP_PROTOCOL | exporter.protocol | Protocol (http or grpc) |
OTEL_EXPORTER_OTLP_HEADERS | exporter.headers | Comma-separated key=value pairs |
OTEL_EXPORTER_OTLP_COMPRESSION | exporter.compression | Compression (gzip or none) |
Extension-specific variables with LAMBDA_OTEL_ prefix take precedence.
Structs§
- Config
- Main configuration struct for the extension.
- Config
Builder - Builder for constructing configuration programmatically.
- Correlation
Config - Span correlation configuration.
- Exporter
Config - OTLP exporter configuration.
- Flush
Config - Flush behaviour configuration.
- Receiver
Config - OTLP receiver configuration.
- Telemetry
ApiConfig - Telemetry API configuration.
Enums§
- Compression
- Compression algorithm for OTLP export.
- Flush
Strategy - Flush strategy for buffered signals.
- Protocol
- OTLP protocol for export.