From 4ee15c94c4b6e10c112323fcb1e141ad1405551f Mon Sep 17 00:00:00 2001 From: David McDonald Date: Wed, 8 Jul 2020 16:26:28 +0100 Subject: [PATCH] Bump gds metrics to 0.2.2 to bring in bug fix https://github.com/alphagov/gds_metrics_python/blob/master/CHANGELOG.md#021 This will mean that if an exception is thrown in any `before_request` functions that run before the gds metrics `before_request` function, then we will no longer throw an uncaught exception. Note, this could still be the case (and has been seen in production) as `init_app(application)` in `create_app` in `init.py` can indeed throw exceptions, for example when it can't find the current service. We could move our init app for gds metrics further up if we wanted to to further counter this. --- requirements-app.txt | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-app.txt b/requirements-app.txt index 36fe95c3a..cf617cf75 100644 --- a/requirements-app.txt +++ b/requirements-app.txt @@ -28,4 +28,4 @@ git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk- # gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains prometheus-client==0.8.0 -gds-metrics==0.2.0 +gds-metrics==0.2.2 diff --git a/requirements.txt b/requirements.txt index fa297a791..758cedf0c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk- # gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains prometheus-client==0.8.0 -gds-metrics==0.2.0 +gds-metrics==0.2.2 ## The following requirements were added by pip freeze: awscli==1.18.95