Attribute Macro function_timer::time

source ·
#[time]
Expand description

Macro that time a function and emit a histogram metric using metrics crate

#[time("metric_name")]

This macro can be on a function.