opentelemetry-resourcedetector-process
An OpenTelemetry package to populates Resource attributes from the running process
What it is and what it does
This package is a resource detector plugin for OpenTelemetry that gathers process-level information from the running Python application and attaches it to Resource objects. It uses psutil to read process metadata and integrates with the OpenTelemetry SDK's resource aggregation system, allowing you to automatically enrich traces and metrics with context about the process that generated them.
You use it by instantiating ProcessResourceDetector and passing it to get_aggregated_resources() alongside other detectors. The resulting Resource is then passed to a TracerProvider or other OpenTelemetry components. It is designed as a drop-in detector for the standard OpenTelemetry resource detection pattern and requires no additional configuration.
Use it for:
- Automatically tag traces with process ID and executable name when setting up a TracerProvider for distributed tracing.
- Populate Resource attributes with process metadata for better observability context in production deployments.
- Combine process detection with other resource detectors to build a complete Resource for telemetry export.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extracts process-level metadata and populates OpenTelemetry Resource objects with process attributes for use in tracing and observability pipelines.
No. The package is abandoned (last release 2022-09-18, no updates for 1426 days) and will not receive maintenance or security updates. While it has low install friction and permissive licensing, the lack of maintenance makes it risky for production use. Consider whether built-in resource detection or a maintained alternative meets your needs.
Install
opentelemetry-resourcedetector-process on PyPI
pip
pip install opentelemetry-resourcedetector-processuv
uv add opentelemetry-resourcedetector-processpoetry
poetry add opentelemetry-resourcedetector-processInstalling opentelemetry-resourcedetector-process
Before you install
Low friction to install; depends on psutil, opentelemetry-sdk, and opentelemetry-semantic-conventions. However, the package is abandoned—last release was 2022-09-18 with no updates since, so it will not receive bug fixes or security patches.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_process import ProcessResourceDetector
resource = get_aggregated_resources([
ProcessResourceDetector()
])
Verify before relying
- Whether the package works correctly with current versions of opentelemetry-sdk and opentelemetry-semantic-conventions, given the 1426-day gap since last release.
- Whether process attribute detection remains accurate across different operating systems and Python versions given the lack of recent maintenance.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — psutil, opentelemetry-sdk, opentelemetry-semantic-conventions |
| Maintenance | abandoned — 1,426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,326,498/month — #4,056 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_resourcedetector_process-0.3.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-resourcedetector-dockerExtracts Docker container metadata and…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-gcpAutomatically detects and reports GCP resource…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-kubernetesDetects and populates OpenTelemetry Resource…
permissive · top 5,000 on PyPI
opentelemetry-resource-detector-containeridDetects and registers container runtime…
permissive · top 15,000 on PyPI
opentelemetry-resource-detector-azureProvides OpenTelemetry resource detectors that…
permissive · top 5,000 on PyPI
opentelemetry-container-distroProvides an OpenTelemetry distribution that…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-loggingIntegrates Python's standard logging module…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-system-metricsCollects system performance metrics (CPU,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-fastapiAutomatically instruments FastAPI applications…
permissive · top 1,000 on PyPI
openfeature-hooks-opentelemetryAutomatically captures feature flag evaluations…
permissive · top 15,000 on PyPI