Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/chrisguidry/opentelemetry-resourcedetector-process
- Owner: chrisguidry
- License: mit
- Created: 2022-05-01T13:12:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T12:19:24.000Z (over 2 years ago)
- Last Synced: 2024-11-15T22:57:46.688Z (2 months ago)
- Topics: observability, opentelemetry, psutil
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- 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 ...
```