Function init_process_observer

Source
pub async fn init_process_observer(meter: Meter) -> Result<()>
Expand description

Record asynchronnously information about the current process.

ยงExample

use opentelemetry::global;
use opentelemetry_system_metrics::init_process_observer;

let meter = global::meter("process-meter");
init_process_observer(meter);