pub(crate) fn observe_connection_setup(&self, app_layer: AppLayer, start_time: Instant) {
        self.connection_setup_duration
            .with_label_values(&[STATUS_SUCCESS, app_layer.as_str()])
            .observe(start_time.elapsed().as_secs_f64());
    }
/// Records the duration of a successful connection setup, by app layer
/// (protocol).
Records the duration of a successful connection setup, by app layer
(protocol).
Records the duration of a successful connection setup by app layer ( protocol ) .
pub(crate) fn observe_connection_setup(&self, app_layer: AppLayer, start_time: Instant) {
        self.connection_setup_duration
            .with_label_values(&[STATUS_SUCCESS, app_layer.as_str()])
            .observe(start_time.elapsed().as_secs_f64());
    }
pub ( crate ) fn observe_connection_setup ( & self , app_layer : AppLayer , start_time : Instant ) { self . connection_setup_duration . with_label_values ( & [ STATUS_SUCCESS , app_layer . as_str ( ) ] ) . observe ( start_time . elapsed ( ) . as_secs_f64 ( ) ) ; }
Records the duration of a successful connection setup, by app layer
(protocol).
Records the duration of a successful connection setup by app layer ( protocol ) .
&self
app_layer
AppLayer
start_time
Instant
&self
app_layer
AppLayer
start_time
Instant