pub trait BackendObservabilityProvider {
// Required method
fn backend_metrics(&self) -> Vec<(&'static str, u64)>;
}Expand description
Trait every backend implements to surface backend-specific metrics alongside the common driver-tier ones. Optional - backends not implementing it still get the substrate-counter view.
Required Methods§
Sourcefn backend_metrics(&self) -> Vec<(&'static str, u64)>
fn backend_metrics(&self) -> Vec<(&'static str, u64)>
Backend-specific metrics, formatted as a flat list of
(metric_name, value). The driver core combines these with
the substrate counters into a unified snapshot.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".