The Elastic Distribution of OpenTelemetry Python (EDOT Python) provides a pre-configured OpenTelemetry Python SDK and auto-instrumentation packages that are compatible with the Elastic Observability solution. It simplifies the process of instrumenting Python applications and sending telemetry data to Elastic. Currently at v1.12.0, active development with frequent minor releases.
pip install elastic-opentelemetryVerified import paths — ran on the pinned version, not inferred.
Initialize the Elastic OpenTelemetry distribution with environment variables for service name, endpoint, and API key.
Set environment variable OTEL_TRACES_SAMPLER=always_on if you need to trace all requests.
Install only `elastic-opentelemetry` for Elastic-optimized configuration.
Set all environment variables before any telemetry setup code runs.