protomask-metrics 0.1.0

Internal metrics library used by protomask
Documentation
1
2
3
4
5
6
7
8
9
/// A short-hand way to access one of the metrics in `protomask_metrics::metrics`
#[macro_export]
macro_rules! metric {
    // Accept and name and multiple labels
    ($metric_name: ident, $($label_name: ident),+) => {
        protomask_metrics::metrics::$metric_name.with_label_values(&[$(protomask_metrics::metrics::label_values::$label_name),+])
    };

}