spin_telemetry

Macro monotonic_counter

Source
macro_rules! monotonic_counter {
    ($metric:ident $(. $suffixes:ident)*  = $metric_value:expr $(, $attrs:ident=$values:expr)*) => { ... };
}
Expand description

Records an increment to the named monotonic counter with the given attributes.

The increment may only be a positive i64 or f64. You must not mix types for the same metric.

monotonic_counter!(spin.metric_name = 1, metric_attribute = "value");