pub async fn track_metrics(req: Request, next: Next) -> Response
Middleware to track HTTP request metrics