Skip to main content

new_counter

Function new_counter 

Source
pub fn new_counter(
    ctr: &str,
    within: &str,
    options_opt: Option<NewCounterOptions<'_>>,
) -> Result<()>
Expand description

Defines a new counter named $ctr. If within is defined, ctr will be reset whenever within is incremented.