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: 4 months ago
JSON representation
An OpenTelemetry package to populates Resource attributes from the running process.
- Host: GitHub
- URL: https://github.com/chrisguidry/opentelemetry-resourcedetector-process
- Owner: chrisguidry
- License: mit
- Created: 2022-05-01T13:12:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T12:19:24.000Z (almost 3 years ago)
- Last Synced: 2025-03-20T10:17:54.216Z (4 months ago)
- Topics: observability, opentelemetry, psutil
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ...
```