Skip to main content

BackendObservabilityProvider

Trait BackendObservabilityProvider 

Source
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§

Source

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".

Implementors§