pub trait MetricsCollector: Send + Sync {
// Required method
fn RecordRequest(&self, Success: bool, LatencyMilliseconds: f64);
}Expand description
Trait for collecting transport metrics.
Implementations record request outcomes and latency samples, and produce snapshots for monitoring and diagnostics.
Required Methods§
Sourcefn RecordRequest(&self, Success: bool, LatencyMilliseconds: f64)
fn RecordRequest(&self, Success: bool, LatencyMilliseconds: f64)
Records a completed request.
Success- whether the request succeededLatencyMilliseconds- round-trip latency in milliseconds