#open-telemetry #resources #detector

opentelemetry-resource-detectors

A collection of community supported resource detectors for OpenTelemetry

5 releases (breaking)

new 0.6.0 Nov 26, 2024
0.5.0 Oct 7, 2024
0.3.0 Jul 16, 2024
0.2.0 Jun 21, 2024
0.1.0 Mar 19, 2024

#210 in Development tools

Download history 1120/week @ 2024-08-06 1345/week @ 2024-08-13 1374/week @ 2024-08-20 1288/week @ 2024-08-27 1170/week @ 2024-09-03 1288/week @ 2024-09-10 1211/week @ 2024-09-17 815/week @ 2024-09-24 1941/week @ 2024-10-01 939/week @ 2024-10-08 817/week @ 2024-10-15 1716/week @ 2024-10-22 1225/week @ 2024-10-29 705/week @ 2024-11-05 1664/week @ 2024-11-12 1148/week @ 2024-11-19

4,995 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

~2.3–3MB
~56K SLoC