Function serde_prometheus::to_string
source · pub fn to_string<'a, T, L, LI>(
value: &T,
namespace: Option<&str>,
global_labels: L
) -> Result<String, Error>where
T: ?Sized + Serialize,
LI: Borrow<(&'a str, &'a str)>,
L: IntoIterator<Item = LI>,Expand description
Builds a string for a metered::MetricRegistry in Prometheus’ simple text-based exposition
format.