opentelemetry-resourcedetector-docker
An OpenTelemetry package to populates Resource attributes from Docker containers
Decision gist · record as of 2026-08-14
Yes, if your observability stack is stable and you are running in Docker with a compatible OpenTelemetry SDK version. The low install friction and permissive license make it straightforward to adopt. No, if you require active maintenance, expect to upgrade OpenTelemetry frequently, or need support for newer container runtimes—the abandoned status and lack of updates since 2022 create risk in evolving environments.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires opentelemetry-sdk and opentelemetry-semantic-conventions as runtime dependencies; intended for use within a containerized environment where Docker metadata is available.
- Low install friction with only two runtime dependencies.
- However, the package is abandoned—last release was 2022-09-18 with no commits since, and the repository shows no active maintenance.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you may use, modify, and distribute it freely with minimal restrictions—suitable for commercial and private projects.
last release 2022-09-18 (1426 days) · last repo commit 2022-09-18
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,708,391 downloads/mo, #3,631 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-resourcedetector-docker
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_docker import DockerResourceDetector
resource = get_aggregated_resources([DockerResourceDetector()])- Whether the package correctly detects Docker container IDs and metadata on all container runtimes (Docker, containerd, etc.)
- Compatibility with recent OpenTelemetry SDK versions released after 2022-09-18
- Whether abandoned status affects reliability in production observability pipelines
What it is and what it does
This package is a resource detector plugin for OpenTelemetry that automatically discovers and extracts Docker container metadata—such as container ID—and attaches it as Resource attributes to your telemetry data. It integrates with the OpenTelemetry SDK's resource aggregation system, allowing you to pass it alongside other detectors to build a complete resource context.
The package is designed to run inside Docker containers and populate telemetry with container-specific identifiers. It depends on opentelemetry-sdk and opentelemetry-semantic-conventions, and has low install friction. However, it has been abandoned since September 2022 with no subsequent maintenance, so it may not work with newer OpenTelemetry versions or evolving container runtime standards.
Use it for
- Automatically tag traces and metrics with Docker container IDs in containerized applications to correlate observability data with specific containers.
- Enrich OpenTelemetry Resource attributes in Kubernetes or Docker Compose deployments without manual configuration.
- Populate container metadata in telemetry backends to enable filtering and grouping by container identity.
- Integrate Docker resource detection into a multi-detector resource aggregation pipeline for comprehensive context.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if your observability stack is stable and you are running in Docker with a compatible OpenTelemetry SDK version.
The low install friction and permissive license make it straightforward to adopt. No, if you require active maintenance, expect to upgrade OpenTelemetry frequently, or need support for newer container runtimes—the abandoned status and lack of updates since 2022 create risk in evolving environments.
Install
opentelemetry-resourcedetector-docker on PyPI
Before you install
Low install friction with only two runtime dependencies. However, the package is abandoned—last release was 2022-09-18 with no commits since, and the repository shows no active maintenance. Use only if your observability stack is stable and you do not expect upstream updates.
Requires opentelemetry-sdk and opentelemetry-semantic-conventions as runtime dependencies; intended for use within a containerized environment where Docker metadata is available.
License in practice
Licensed under MIT (permissive), so you may use, modify, and distribute it freely with minimal restrictions—suitable for commercial and private projects.
Quickstart
pip install opentelemetry-resourcedetector-docker
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_docker import DockerResourceDetector
resource = get_aggregated_resources([DockerResourceDetector()])
Verify before relying
- Whether the package correctly detects Docker container IDs and metadata on all container runtimes (Docker, containerd, etc.)
- Compatibility with recent OpenTelemetry SDK versions released after 2022-09-18
- Whether abandoned status affects reliability in production observability pipelines
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesopentelemetry-sdkopentelemetry-semantic-conventions |
| Maintenance | Abandoned 1,426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,708,391 / month, #3,631 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 |
Evidence: opentelemetry_resourcedetector_docker-0.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “docker container resource detection”
- opentelemetry-resourcedetector-dockerExtracts Docker container metadata and populates OpenTelemetry…
- opentelemetry-container-distroProvides an OpenTelemetry distribution that automatically detects and…
- opentelemetry-resource-detector-containeridDetects and registers container runtime metadata (container ID, image…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-resource-detector-containerid · opentelemetry-resourcedetector-process · opentelemetry-container-distro · opentelemetry-resourcedetector-kubernetes · opentelemetry-resource-detector-azure · opentelemetry-sdk-extension-aws · opentelemetry-resourcedetector-gcp · openfeature-hooks-opentelemetry · opentelemetry-instrumentation-logging · container-inspector