Skip to main content

Module metrics

Module metrics 

Source

Structs§

MethodCounters
Per-HTTP-method request counters.
Metrics
Lightweight, lock-free request metrics.

Functions§

set_current_request
Stash the in-flight request URL + start time so the next record_request call on this thread can emit a complete access log line. Pass None for paths we want to skip in the log (currently /health + /metrics — they’re called by liveness probes and Prometheus scrapers and would drown out real traffic).