8 breaking releases
| 0.10.0 | Oct 1, 2025 |
|---|---|
| 0.9.0 | May 28, 2025 |
| 0.8.0 | Apr 2, 2025 |
| 0.7.0 | Feb 11, 2025 |
| 0.1.0 | Mar 19, 2024 |
#88 in Data structures
185,930 downloads per month
Used in 7 crates
20KB
351 lines
OpenTelemetry Resource Detectors

| Status | |
|---|---|
| Stability | beta |
| Owners | Anton Grübel |
Community supported Resource detectors implementations for applications instrumented with OpenTelemetry.
Overview
[The opentelemetry-resource-detectors] crate provides a collection of tools to detect resources from the runtime. This crate provides additional detectors for OS and process-related resources. Despite not being included in the SDK due to their lack of stability, these detectors can facilitate gathering additional telemetry information.
Features
| Detector | Implemented Resources | OS Supported | Semantic Conventions |
|---|---|---|---|
| ProcessResourceDetector | PROCESS_COMMAND_ARGS, PROCESS_PID | all | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/process.md |
| OsResourceDetector | OS_TYPE | all | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/os.md |
| HostResourceDetector | HOST_ID | linux | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/host.md |
| HostResourceDetector | HOST_ARCH | all | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/host.md |
| K8sResourceDetector | K8S_NAMESPACE_NAME | all | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md |
| K8sResourceDetector | K8S_POD_NAME | all | https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md |
Dependencies
~3.5MB
~58K SLoC