Skip to main content

render

Function render 

Source
pub fn render() -> String
Expand description

Render the current registry state to the Prometheus text exposition format. Ignores errors from the encoder (unreachable in practice) and returns an empty string — the scrape returns 200 with a possibly-empty body rather than a 5xx, which Prometheus handles gracefully.