Merge pull request #708 from GSA/notify-admin-674

notify-admin-674 remove gds_metrics
This commit is contained in:
Steven Reilly
2023-08-24 20:28:39 -04:00
committed by GitHub
2 changed files with 1 additions and 10 deletions

View File

@@ -20,7 +20,6 @@ from flask_login import LoginManager, current_user
from flask_talisman import Talisman
from flask_wtf import CSRFProtect
from flask_wtf.csrf import CSRFError
from gds_metrics import GDSMetrics
from govuk_frontend_jinja.flask_ext import init_govuk_frontend
from itsdangerous import BadSignature
from notifications_python_client.errors import HTTPError
@@ -128,7 +127,6 @@ from app.url_converters import (
login_manager = LoginManager()
csrf = CSRFProtect()
talisman = Talisman()
metrics = GDSMetrics()
basic_auth = CustomBasicAuth()
@@ -194,11 +192,6 @@ 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,
proxy_fix,