Skip to main content

decode_length_delimited

Function decode_length_delimited 

Source
pub fn decode_length_delimited(
    bytes: &[u8],
) -> Result<Vec<MetricFamily>, String>
Expand description

Decodes the wire format produced by prometheus::ProtobufEncoder (and what callers receive from a Prometheus /metrics endpoint with Accept: application/vnd.google.protobuf).