Skip to main content

counter

Function counter 

Source
pub fn counter(
    name: impl Into<Cow<'static, str>>,
    description: impl Into<Cow<'static, str>>,
) -> Counter<u64>
Expand description

Create a monotonic u64 counter (e.g. requests, jobs, errors).