opentelemetry-container-distro
An OpenTelemetry distro which automatically discovers container attributes
What it is and what it does
opentelemetry-container-distro is a preconfigured OpenTelemetry distribution designed to simplify telemetry setup in containerized environments. It extends the standard opentelemetry-distro by bundling three resource detectors—for Docker, Kubernetes, and process-level attributes—so they are automatically discovered and attached to telemetry data without manual configuration. This saves boilerplate when deploying observability to containers.
The package depends on seven OpenTelemetry components: opentelemetry-api, opentelemetry-sdk, opentelemetry-instrumentation, opentelemetry-exporter-otlp, opentelemetry-resourcedetector-docker, opentelemetry-resourcedetector-kubernetes, and opentelemetry-resourcedetector-process. It targets Python 3.8 and later. However, the package has not been updated since 2022-09-18 and is marked abandoned, meaning its dependencies may have drifted from the current OpenTelemetry ecosystem.
Use it for:
- Automatically inject Docker container metadata into traces and metrics without manual resource configuration.
- Detect and attach Kubernetes pod and cluster attributes to observability signals in containerized deployments.
- Simplify OpenTelemetry setup in container-native applications by bundling common resource detectors in one distro.
- Establish baseline process-level telemetry alongside container context in multi-container systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an OpenTelemetry distribution that automatically detects and configures container environment attributes for Docker and Kubernetes deployments.
No. The package is abandoned (last commit 2022-09-18, no updates for over three years) and its dependencies have likely evolved significantly. For new projects, use the current opentelemetry-distro and add resource detectors explicitly. For existing deployments already running this version, evaluate whether upstream OpenTelemetry updates have introduced breaking changes before upgrading other components.
Install
opentelemetry-container-distro on PyPI
pip
pip install opentelemetry-container-distrouv
uv add opentelemetry-container-distropoetry
poetry add opentelemetry-container-distroInstalling opentelemetry-container-distro
Before you install
Low install friction with a pure-Python wheel, but the package is abandoned—last updated 2022-09-18 with no commits since then. Relies on seven runtime dependencies that may have evolved independently.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt from a licensing perspective.
Quickstart
pip install opentelemetry-container-distro
from opentelemetry.sdk.resources import get_aggregated_resource_from_envvar
from opentelemetry.sdk.trace import TracerProvider
resource = get_aggregated_resource_from_envvar()
tracer_provider = TracerProvider(resource=resource)
Requires Python 3.8 or later; depends on opentelemetry-api, opentelemetry-sdk, opentelemetry-exporter-otlp, opentelemetry-instrumentation, and the three resource detectors (docker, kubernetes, process).
Verify before relying
- Whether the bundled resource detectors remain compatible with current OpenTelemetry SDK versions.
- Whether the package's configuration behavior fully matches the current opentelemetry-distro standard.
- Active maintenance status of the upstream OpenTelemetry dependencies this package relies on.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — opentelemetry-api, opentelemetry-exporter-otlp, opentelemetry-instrumentation, opentelemetry-resourcedetector-docker, opentelemetry-resourcedetector-kubernetes, opentelemetry-resourcedetector-process, opentelemetry-sdk |
| Maintenance | abandoned — 1,426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,325,942/month — #4,057 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_container_distro-0.2.0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-resource-detector-containeridDetects and registers container runtime…
permissive · top 15,000 on PyPI
opentelemetry-resourcedetector-dockerExtracts Docker container metadata and…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-kubernetesDetects and populates OpenTelemetry Resource…
permissive · top 5,000 on PyPI
aws-opentelemetry-distroProvides AWS-integrated OpenTelemetry…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-processExtracts process-level metadata and populates…
permissive · top 5,000 on PyPI
opentelemetry-distroProvides a Python distribution package for…
permissive · top 1,000 on PyPI
azure-monitor-opentelemetryBundles OpenTelemetry SDK and Azure Monitor…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-gcpAutomatically detects and reports GCP resource…
permissive · top 5,000 on PyPI
distroDistro provides a reliable, machine-readable…
permissive · top 1,000 on PyPI