Skip to main content

spawn_metrics_endpoint

Function spawn_metrics_endpoint 

Source
pub(crate) fn spawn_metrics_endpoint(addr: SocketAddr)
Expand description

Serve /metrics over a minimal HTTP/1.0 responder — no framework needed for a single static endpoint, and scrape latency stays negligible.