Skip to main content

MetricsSubsystem

Trait MetricsSubsystem 

Source
pub trait MetricsSubsystem {
    // Required methods
    fn name(&self) -> &'static str;
    fn register_metrics(&self, catalog: &mut MetricCatalog) -> Result<()>;
}
Expand description

A subsystem that owns and registers a set of metric descriptors.

Required Methods§

Source

fn name(&self) -> &'static str

Stable subsystem name.

Source

fn register_metrics(&self, catalog: &mut MetricCatalog) -> Result<()>

Registers metric descriptors owned by this subsystem.

Implementors§