semvec/pypi-packages huggingface dataset:
opentelemetry-resourcedetector-docker 0.4.0
An OpenTelemetry package to populates Resource attributes from Docker containers
Requires Python: >=3.8

# 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 ...
```
opentelemetry-container-distro 0.2.0
An OpenTelemetry distro which automatically discovers container attributes
Requires Python: >=3.8

# opentelemetry-container-distro

An OpenTelemetry distro which automatically discovers container attributes.

This distro expands the standard `opentelemetry-distro` to automatically bring in
additional resource detectors for container environments.

* [opentelemetry-resourcedetector-docker](https://pypi.org/project/opentelemetry-resourcedetector-docker/)
* [opentelemetry-resourcedetector-kubernetes](https://pypi.org/project/opentelemetry-resourcedetector-kubernetes/)
* [opentelemetry-resourcedetector-process](https://pypi.org/project/opentelemetry-resourcedetector-process/)

Otherwise, this distro preserves the behavior and configuration of
`opentelemetry-distro`.