skillfed

opentelemetry-resourcedetector-process

An OpenTelemetry package to populates Resource attributes from the running process

opentelemetry-resourcedetector-process v0.3.0 1.3M downloads/30d#4,056 on PyPI0
Permissive license Abandoned released

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

uv

uv add opentelemetry-resourcedetector-process

poetry

poetry add opentelemetry-resourcedetector-process

Installing 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

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

Tags

opentelemetry resource detector processprocess attributes telemetryopentelemetry process metadataresource detector pid process nameopentelemetry instrumentation processprocess resource attributestelemetry process information
observabilityabandoned

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-resourcedetector-docker

Extracts Docker container metadata and…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-gcp

Automatically detects and reports GCP resource…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-kubernetes

Detects and populates OpenTelemetry Resource…

permissive · top 5,000 on PyPI

opentelemetry-resource-detector-containerid

Detects and registers container runtime…

permissive · top 15,000 on PyPI

opentelemetry-resource-detector-azure

Provides OpenTelemetry resource detectors that…

permissive · top 5,000 on PyPI

opentelemetry-container-distro

Provides an OpenTelemetry distribution that…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-logging

Integrates Python's standard logging module…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-system-metrics

Collects system performance metrics (CPU,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-fastapi

Automatically instruments FastAPI applications…

permissive · top 1,000 on PyPI

openfeature-hooks-opentelemetry

Automatically captures feature flag evaluations…

permissive · top 15,000 on PyPI