Function penumbra_app::metrics::with_local_recorder

pub fn with_local_recorder<T>(
    recorder: &dyn Recorder,
    f: impl FnOnce() -> T
) -> T
Expand description

Runs the closure with the given recorder set as the global recorder for the duration.