pub fn record_request(
route: &str,
method: &str,
status: u16,
duration_secs: f64,
)Expand description
Record one completed HTTP request into the global metrics recorder.
route must be the matched pattern (e.g. /users/:id), never the raw
path — using raw paths produces unbounded cardinality and will OOM the
Prometheus storage in production.