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§
Sourcefn collect(&self) -> Vec<MetricsSnapshot>
fn collect(&self) -> Vec<MetricsSnapshot>
Returns a snapshot of all current metric values.
Sourcefn health(&self) -> HealthStatus
fn health(&self) -> HealthStatus
Returns the current health status of this component.