Crate opentelemetry_instrumentation_process

Crate opentelemetry_instrumentation_process 

Source
Expand description

§OpenTelemetry process instrumentation

A process instrumentation for the opentelemetry Rust crate that captures key metrics about the running process, such as CPU and memory usage.

Crates.io Documentation Apache 2.0 License

§Installation

Add this to your Cargo.toml:

[dependencies]
opentelemetry-instrumentation-process = "0.1.0"

§Usage

opentelmetry_instrumentation_process::init().unwrap();

§OS support

This library only supports Linux for now. It is a no-op on other operating systems.

Structs§

InitError
The error returned when process metrics initialisation fails.

Functions§

init
Initialise process metrics collection.