Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chrisguidry/opentelemetry-resourcedetector-process

An OpenTelemetry package to populates Resource attributes from the running process.
https://github.com/chrisguidry/opentelemetry-resourcedetector-process

observability opentelemetry psutil

Last synced: about 2 months ago
JSON representation

An OpenTelemetry package to populates Resource attributes from the running process.

Awesome Lists containing this project

README

        

# opentelemetry-resourcedetector-process

An OpenTelemetry package to populates 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 TracerProvder, for example ...
```