Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisguidry/opentelemetry-resourcedetector-docker
An OpenTelemetry package to populates Resource attributes from Docker containers.
https://github.com/chrisguidry/opentelemetry-resourcedetector-docker
docker observability opentelemetry
Last synced: about 2 months ago
JSON representation
An OpenTelemetry package to populates Resource attributes from Docker containers.
- Host: GitHub
- URL: https://github.com/chrisguidry/opentelemetry-resourcedetector-docker
- Owner: chrisguidry
- License: mit
- Created: 2022-05-01T03:43:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T12:19:13.000Z (over 2 years ago)
- Last Synced: 2024-12-03T20:41:14.230Z (about 2 months ago)
- Topics: docker, observability, opentelemetry
- Language: Python
- Homepage:
- Size: 24.4 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-docker
An OpenTelemetry package to populates Resource attributes from Docker containers.
## Usage
```
from opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_docker import DockerResourceDetector...
resource = get_aggregated_resources([
DockerResourceDetector(),
SomeOtherResourceDetector()
])... pass the returned `resource` to a TracerProvder, for example ...
```