Trait engine_traits::PerfContext[][src]

pub trait PerfContext: Send {
    fn start_observe(&mut self);
fn report_metrics(&mut self); }

Reports metrics to prometheus

For alternate engines, it is reasonable to make start_observe and report_metrics no-ops.

Required methods

fn start_observe(&mut self)[src]

Reinitializes statistics and the perf level

fn report_metrics(&mut self)[src]

Reports the current collected metrics to prometheus

Loading content...

Implementors

Loading content...