opentelemetry-resource-detectors

Crates.ioopentelemetry-resource-detectors
lib.rsopentelemetry-resource-detectors
version0.9.0
created_at2024-03-19 22:02:39.655759+00
updated_at2025-05-28 14:59:54.453931+00
descriptionA collection of community supported resource detectors for OpenTelemetry
homepagehttps://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-resource-detectors
repositoryhttps://github.com/open-telemetry/opentelemetry-rust-contrib/tree/main/opentelemetry-resource-detectors
max_upload_size
id1179743
size45,039
rust-publishers (github:open-telemetry:rust-publishers)

documentation

README

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
Commit count: 1014

cargo fmt