pub(crate) fn log_query_latency(&self, latency: u64) -> Result<(), MetricsError> {
        let mut histogram_unlocked = self.histogram.lock().unwrap();
        histogram_unlocked.increment(latency)?;
        Ok(())
    }
/// Saves to histogram latency of completing single query.
/// For paged queries it should log latency for every page.
///
/// # Arguments
///
/// * `latency` - time in milliseconds that should be logged
Saves to histogram latency of completing single query.
For paged queries it should log latency for every page.
Saves to histogram latency of completing single query . For paged queries it should log latency for every page .
pub(crate) fn log_query_latency(&self, latency: u64) -> Result<(), MetricsError> {
        let mut histogram_unlocked = self.histogram.lock().unwrap();
        histogram_unlocked.increment(latency)?;
        Ok(())
    }
pub ( crate ) fn log_query_latency ( & self , latency : u64 ) -> Result < ( ) , MetricsError > { let mut histogram_unlocked = self . histogram . lock ( ) . unwrap ( ) ; histogram_unlocked . increment ( latency ) ? ; Ok ( ( ) ) }
Saves to histogram latency of completing single query.
Saves to histogram latency of completing single query .
&self
latency
u64
&self
latency
u64