govuk_app_config 7.1.0 → 7.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55aadf4fdd96125cdacca3f50768c74005433fecadc2271248ec9d59973b5f80
4
- data.tar.gz: 577a4e8061b5458e912d1ab16236c7011f8695c53fd8427a3378529c482466cc
3
+ metadata.gz: f921d89549f7203b1e80f23a4e7b4c7c20634120eac39d551a05ba41fc986625
4
+ data.tar.gz: 7af7692a9eec9676df25822f2988d00fe73a863cfabf2e4294c51747f1bff743
5
5
  SHA512:
6
- metadata.gz: 5736f71ea147e470900633ea0a46625b316703a38d636b18b30b5ad616af62b715f4c990953cc97c7950fdee3f5226629938d1e5f84c06a6373a36a194cda8ff
7
- data.tar.gz: af25d35eb1873b93b7848a12f406a4c83dcde832b9af598d2263815bc4be071bf6c20ca5300f23a86102e4afe99cd226687dc3673341960a91059ff75c400111
6
+ metadata.gz: f0e6360036a9b2c80c96899d00129a0e270fbb15b7d070d67fa54abe45c2c02f38ed3ed95c4aa0c055b4934217030f504c049b9ac09c7a0d0c3a2dfd0c3b00ee
7
+ data.tar.gz: f5c29754f917bb57d50dfe8658d5d1c0c91fcfaded23ca2563595e59a40f46f59f52efb440d8599a7118b4182a2fce41c9286fa207fc13aff71b6d652ef3efc2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 7.2.1
2
+
3
+ * Allow prometheus binding to fail with a warning rather than a crash ([#294](https://github.com/alphagov/govuk_app_config/pull/294))
4
+
5
+ # 7.2.0
6
+
7
+ * Suppress noisy Puma::HttpParserError errors ([#292](https://github.com/alphagov/govuk_app_config/pull/292))
8
+
1
9
  # 7.1.0
2
10
 
3
11
  * `GovukError` now allows specifying any name for the Sentry environment tag via the `SENTRY_CURRENT_ENV` environment variable. The environment name no longer has to match one of a fixed set of strings in order for `GovukError` to log events to Sentry.
@@ -41,6 +41,7 @@ module GovukError
41
41
  "GdsApi::HTTPIntermittentServerError",
42
42
  "GdsApi::TimedOutException",
43
43
  "Mongoid::Errors::DocumentNotFound",
44
+ "Puma::HttpParserError",
44
45
  "Sinatra::NotFound",
45
46
  "Slimmer::IntermittentRetrievalError",
46
47
  "Sidekiq::JobRetry::Skip",
@@ -34,15 +34,19 @@ module GovukPrometheusExporter
34
34
  end
35
35
  end
36
36
 
37
- server = PrometheusExporter::Server::WebServer.new bind: "0.0.0.0", port: 9394
38
- server.start
37
+ begin
38
+ server = PrometheusExporter::Server::WebServer.new bind: "0.0.0.0", port: 9394
39
+ server.start
39
40
 
40
- if defined?(Rails)
41
- Rails.application.middleware.unshift PrometheusExporter::Middleware
42
- end
41
+ if defined?(Rails)
42
+ Rails.application.middleware.unshift PrometheusExporter::Middleware
43
+ end
43
44
 
44
- if defined?(Sinatra)
45
- Sinatra.use PrometheusExporter::Middleware
45
+ if defined?(Sinatra)
46
+ Sinatra.use PrometheusExporter::Middleware
47
+ end
48
+ rescue Errno::EADDRINUSE
49
+ warn "Warning: Could not connect to Prometheus Server"
46
50
  end
47
51
  end
48
52
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "7.1.0".freeze
2
+ VERSION = "7.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.4.12
324
+ rubygems_version: 3.4.13
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Base configuration for GOV.UK applications