pub fn encode(registry: &Registry) -> Result<MetricSet, Error>
Encode the metrics registered with the provided Registry into MetricSet using the OpenMetrics protobuf format.
Registry