Skip to main content

spawn_process_metrics

Function spawn_process_metrics 

Source
fn spawn_process_metrics()
Expand description

Records the process metrics through the global recorder, which must already be installed.

Samples once immediately, then every PROCESS_METRICS_INTERVAL on a dedicated thread, so the readings neither depend on a backend nor run on a Tokio worker.