diff --git a/iroh-metrics/src/core.rs b/iroh-metrics/src/core.rs index c1218a7af1..ca7168548c 100644 --- a/iroh-metrics/src/core.rs +++ b/iroh-metrics/src/core.rs @@ -183,8 +183,10 @@ impl Core { self.metrics_map.get::() } + /// Encodes the current metrics registry to a string in + /// the prometheus text exposition format. #[cfg(feature = "metrics")] - pub(crate) fn encode(&self) -> Result { + pub fn encode(&self) -> Result { let mut buf = String::new(); encode(&mut buf, &self.registry)?; Ok(buf)