Module config

Module config 

Source
Expand description

Configuration loading and management.

This module provides layered configuration for the extension using figment. Configuration is loaded from (in order of priority):

  1. Default values (compiled in)
  2. Config file: /var/task/otel-extension.toml (optional)
  3. Standard OpenTelemetry environment variables (OTEL_*)
  4. Extension-specific environment variables (LAMBDA_OTEL_*)

§Supported Standard Environment Variables

The following standard OpenTelemetry environment variables are supported:

VariableConfig PathDescription
OTEL_EXPORTER_OTLP_ENDPOINTexporter.endpointOTLP endpoint URL
OTEL_EXPORTER_OTLP_PROTOCOLexporter.protocolProtocol (http or grpc)
OTEL_EXPORTER_OTLP_HEADERSexporter.headersComma-separated key=value pairs
OTEL_EXPORTER_OTLP_COMPRESSIONexporter.compressionCompression (gzip or none)

Extension-specific variables with LAMBDA_OTEL_ prefix take precedence.

Structs§

Config
Main configuration struct for the extension.
ConfigBuilder
Builder for constructing configuration programmatically.
CorrelationConfig
Span correlation configuration.
ExporterConfig
OTLP exporter configuration.
FlushConfig
Flush behaviour configuration.
ReceiverConfig
OTLP receiver configuration.
TelemetryApiConfig
Telemetry API configuration.

Enums§

Compression
Compression algorithm for OTLP export.
FlushStrategy
Flush strategy for buffered signals.
Protocol
OTLP protocol for export.