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§
Sourcefn register_metrics(&self, catalog: &mut MetricCatalog) -> Result<()>
fn register_metrics(&self, catalog: &mut MetricCatalog) -> Result<()>
Registers metric descriptors owned by this subsystem.