/// Records the duration of a failed connection setup, by error.
Records the duration of a failed connection setup, by error.
Records the duration of a failed connection setup by error .
pub(crate) fn observe_connection_error(&self, error: ConnectionError, start_time: Instant) {
        self.connection_setup_duration
            .with_label_values(&[STATUS_ERROR, error.as_str()])
            .observe(start_time.elapsed().as_secs_f64());
    }
pub ( crate ) fn observe_connection_error ( & self , error : ConnectionError , start_time : Instant ) { self . connection_setup_duration . with_label_values ( & [ STATUS_ERROR , error . as_str ( ) ] ) . observe ( start_time . elapsed ( ) . as_secs_f64 ( ) ) ; }
Records the duration of a failed connection setup, by error.
Records the duration of a failed connection setup by error .
&self
error
ConnectionError
start_time
Instant