[][src]Macro metrics_facade::counter

macro_rules! counter {
    ($name:tt, $value:expr) => { ... };
}

Records a counter.

Functionally equivalent to calling Recorder::record_counter.

Examples

fn do_thing() {
    let count: u64 = 42;
    counter!("do_thing", count);
}