pub(crate) async fn http_metrics_layer<B>( req: Request<B>, next: Next<B>, ) -> impl IntoResponse
A middleware to record metrics for HTTP.