METRICS

Static METRICS 

Source
pub static METRICS: OnceLock<Metrics>
Expand description

Global metrics instance for the web server

Use this for recording metrics throughout the codebase:

use reasonkit_web::metrics::global_metrics;
global_metrics().record_request("/capture", 200, duration);