Macro kumo_prometheus::counter_bundle

source ยท
macro_rules! counter_bundle {
    (pub struct $name:ident {
        $(
            pub $fieldname:ident: AtomicCounter,
        )*
    }
    ) => { ... };
}
Expand description

counter_bundle declares a struct holding a bundle of counters that should be incremented or decremented together. This is used to facilitate computing rolled up metrics.