Skip to main content

set_current_request

Function set_current_request 

Source
pub fn set_current_request(url: &str, started: Instant)
Expand description

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).