$npx skillfedfor your agent

opentelemetry-resource-detector-containerid

Container Resource Detector for OpenTelemetry

With conditionsPyPI MonitoringReleased Jul 2026177.2K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_resource_detector_containerid-0.65b0-py3-none-any.whl
v0.65b0 · released 2026-07-16 · Python >=3.10 · 1 runtime deps: opentelemetry-sdk

Yes, if you run containerized applications and use OpenTelemetry for tracing or metrics. It automates container metadata capture with minimal setup and active maintenance. The single dependency and low install friction make it a straightforward addition to any OpenTelemetry stack.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; opentelemetry-sdk must be installed.
  • Low friction install with a single runtime dependency on opentelemetry-sdk.
  • Active maintenance with a recent release (29 days old) and ongoing repository activity.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions.

last release 2026-07-16 (29 days) · last repo commit 2026-08-14 · 1,086 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 177,169 downloads/mo, #10,224 on PyPI

Verify before relying

pip install opentelemetry-resource-detector-containerid

from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.resource.detector.containerid import ContainerResourceDetector
from opentelemetry.sdk.resources import get_aggregated_resources

TracerProvider(resource=get_aggregated_resources([ContainerResourceDetector()]))
  • Which container platforms (Docker, Kubernetes, ECS, etc.) are actually supported by this detector
  • Whether the detector automatically discovers container metadata or requires environment configuration
Same gist for agents: .md · .json

What it is and what it does

This package extends OpenTelemetry's resource detection system to automatically capture container runtime metadata and attach it to traces and metrics. When initialized, the ContainerResourceDetector inspects the container environment and extracts identifiers like container ID, image name, and pod information, then registers these as resource attributes that flow through all telemetry signals.

It's designed for containerized applications running on platforms like Docker, Kubernetes, or other container orchestrators. By adding container context to your telemetry, you enable better correlation of traces and metrics with the actual container instances that generated them, making it easier to debug and monitor distributed systems. The package integrates directly into OpenTelemetry's standard resource aggregation pipeline.

Use it for

  • Attach container ID and image metadata to traces in Kubernetes-deployed services for better observability
  • Correlate metrics and traces with specific container instances in multi-container environments
  • Automatically enrich telemetry with pod and container names for easier debugging in orchestrated deployments
  • Build container-aware resource attributes for OpenTelemetry exporters without manual environment parsing

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you run containerized applications and use OpenTelemetry for tracing or metrics.

It automates container metadata capture with minimal setup and active maintenance. The single dependency and low install friction make it a straightforward addition to any OpenTelemetry stack.

Install

opentelemetry-resource-detector-containerid on PyPI

Before you install

Low friction install with a single runtime dependency on opentelemetry-sdk. Active maintenance with a recent release (29 days old) and ongoing repository activity.

Requires Python 3.10 or later; opentelemetry-sdk must be installed.

License in practice

Apache-2.0 permissive license allows use in commercial and open-source projects with minimal restrictions.

Quickstart

pip install opentelemetry-resource-detector-containerid

from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.resource.detector.containerid import ContainerResourceDetector
from opentelemetry.sdk.resources import get_aggregated_resources

TracerProvider(resource=get_aggregated_resources([ContainerResourceDetector()]))

Verify before relying

  • Which container platforms (Docker, Kubernetes, ECS, etc.) are actually supported by this detector
  • Whether the detector automatically discovers container metadata or requires environment configuration

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
opentelemetry-sdk
MaintenanceActively maintained 29 days since the last release
Last repo commit
First released
Downloads177,169 / month, #10,224 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: opentelemetry_resource_detector_containerid-0.65b0-py3-none-any.whl

Tags

Capabilities
container resource detector opentelemetrycontainer id tracingkubernetes pod metadata telemetrydocker container instrumentationopentelemetry container attributes
Topics
observabilitycontainer-nativekubernetes

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 › “container id tracing”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also opentelemetry-container-distro · opentelemetry-resource-detector-azure · opentelemetry-resourcedetector-docker · opentelemetry-resourcedetector-kubernetes · opentelemetry-resourcedetector-gcp · opentelemetry-sdk-extension-aws · opentelemetry-resourcedetector-process · opentelemetry-instrumentation-logging · opentelemetry-instrumentation-system-metrics · openinference-instrumentation-portkey