pub async fn init_process_observer_for_pid(meter: Meter, pid: u32) -> Result<()>Expand description
Record asynchronously information about a specific process by its PID.
ยงExample
use opentelemetry::global;
use opentelemetry_system_metrics::init_process_observer_for_pid;
let meter = global::meter("process-meter");
let pid = 1234; // replace with the actual PID
init_process_observer_for_pid(meter, pid).await;