metriken 0.3.5

A fast and lightweight metrics library
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::MetricEntry;

#[doc(inline)]
pub use metriken_core::Format;

/// The default formatter supports Prometheus-style exposition, and otherwise
/// simply prints the metric name.
pub fn default_formatter(metric: &MetricEntry, format: Format) -> String {
    metriken_core::default_formatter(metric.as_core(), format)
}