#open-telemetry #detector #resources

opentelemetry-resource-detectors

A collection of community supported resource detectors for OpenTelemetry

7 releases (breaking)

0.8.0 Apr 2, 2025
0.7.0 Feb 11, 2025
0.6.0 Nov 26, 2024
0.5.0 Oct 7, 2024
0.1.0 Mar 19, 2024

#979 in Debugging

Download history 369/week @ 2024-12-21 2789/week @ 2024-12-28 5943/week @ 2025-01-04 5583/week @ 2025-01-11 7636/week @ 2025-01-18 8659/week @ 2025-01-25 5699/week @ 2025-02-01 7163/week @ 2025-02-08 7853/week @ 2025-02-15 9742/week @ 2025-02-22 10240/week @ 2025-03-01 10824/week @ 2025-03-08 9779/week @ 2025-03-15 9674/week @ 2025-03-22 12141/week @ 2025-03-29 13183/week @ 2025-04-05

46,614 downloads per month
Used in 5 crates

Apache-2.0

17KB
274 lines

OpenTelemetry Resource Detectors

OpenTelemetry — An observability framework for cloud-native software.

Status
Stability beta
Owners Anton Grübel

Community supported Resource detectors implementations for applications instrumented with OpenTelemetry.

Crates.io: opentelemetry-resource-detectors Documentation LICENSE GitHub Actions CI Slack

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