skillfed

opentelemetry-container-distro

An OpenTelemetry distro which automatically discovers container attributes

opentelemetry-container-distro v0.2.0 1.3M downloads/30d#4,057 on PyPI0
Permissive license Abandoned released

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-distro

uv

uv add opentelemetry-container-distro

poetry

poetry add opentelemetry-container-distro

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3

Tags

opentelemetry container setupautomatic docker kubernetes telemetrycontainer resource detectionopentelemetry distro dockerkubernetes telemetry instrumentationcontainer environment attributes
observabilitycontainer-nativeabandoned

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-resource-detector-containerid

Detects and registers container runtime…

permissive · top 15,000 on PyPI

opentelemetry-resourcedetector-docker

Extracts Docker container metadata and…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-kubernetes

Detects and populates OpenTelemetry Resource…

permissive · top 5,000 on PyPI

aws-opentelemetry-distro

Provides AWS-integrated OpenTelemetry…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-process

Extracts process-level metadata and populates…

permissive · top 5,000 on PyPI

opentelemetry-distro

Provides a Python distribution package for…

permissive · top 1,000 on PyPI

azure-monitor-opentelemetry

Bundles OpenTelemetry SDK and Azure Monitor…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-gcp

Automatically detects and reports GCP resource…

permissive · top 5,000 on PyPI

distro

Distro provides a reliable, machine-readable…

permissive · top 1,000 on PyPI