An OpenTelemetry package to populate Resource attributes from the running process
Maintained. Last release 11 days ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install opentelemetry-resourcedetector-processopentelemetry-resourcedetector-process
An OpenTelemetry package to populate Resource attributes from the running process.
Usage
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_process import ProcessResourceDetector
...
resource = get_aggregated_resources([
ProcessResourceDetector(),
SomeOtherResourceDetector()
])
... pass the returned `resource` to a TracerProvider, for example ...