diff --git a/app/__init__.py b/app/__init__.py index daaaae04e..b596bdfdd 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -130,11 +130,13 @@ def create_app(application): init_jinja(application) for client in ( - # Gubbins + # Note, metrics purposefully first so we start measuring response times as early as possible before any + # other `app.before_request` handlers (introduced by any of these clients) are processed (which would + # otherwise mean we aren't measuring the full response time) + metrics, csrf, login_manager, - metrics, proxy_fix, request_helper,