Skip to main content

MetricsProvider

Trait MetricsProvider 

Source
pub trait MetricsProvider {
    // Required methods
    fn collect(&self) -> Vec<MetricsSnapshot>;
    fn health(&self) -> HealthStatus;
}
Expand description

Implemented by any component that can expose runtime metrics and health.

Required Methods§

Source

fn collect(&self) -> Vec<MetricsSnapshot>

Returns a snapshot of all current metric values.

Source

fn health(&self) -> HealthStatus

Returns the current health status of this component.

Implementors§