Skip to main content

MetricsExporter

Trait MetricsExporter 

Source
pub trait MetricsExporter<S> {
    // Required method
    fn export(&self, snapshot: &S);
}
Expand description

Export/publish metrics to production monitoring backends.

Consumes a snapshot produced by MetricsSnapshotProvider::snapshot and writes it to an external system (e.g. Prometheus, StatsD).

Required Methods§

Source

fn export(&self, snapshot: &S)

Implementors§