Skip to main content

format_metric

Function format_metric 

Source
pub fn format_metric(label: &str, value: usize) -> String
Expand description

Renders one metric as label: value, the way every ANALYZE line reports it.

A time is a readable duration, a byte count a readable size, and anything else a plain integer. This is the one formatter for a plan line, so a node rendered by its own operator and a node rendered by the collector read alike.