#open-telemetry #resources #detector

opentelemetry-resource-detectors

A collection of community supported resource detectors for OpenTelemetry

6 releases (breaking)

new 0.7.0 Feb 11, 2025
0.6.0 Nov 26, 2024
0.5.0 Oct 7, 2024
0.3.0 Jul 16, 2024
0.1.0 Mar 19, 2024

#424 in Network programming

Download history 1716/week @ 2024-10-22 1225/week @ 2024-10-29 705/week @ 2024-11-05 1664/week @ 2024-11-12 1187/week @ 2024-11-19 1124/week @ 2024-11-26 1610/week @ 2024-12-03 1630/week @ 2024-12-10 1082/week @ 2024-12-17 292/week @ 2024-12-24 4407/week @ 2024-12-31 5978/week @ 2025-01-07 5147/week @ 2025-01-14 8309/week @ 2025-01-21 8026/week @ 2025-01-28 4715/week @ 2025-02-04

27,789 downloads per month
Used in 2 crates

Apache-2.0

16KB
279 lines

OpenTelemetry — An observability framework for cloud-native software.

OpenTelemetry Resource Detectors

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

Dependencies

~3.5MB
~57K SLoC