govuk_app_config 7.2.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: ff17509787cf7ef0c402ec905d5769897a04a6b6baa79e0924956b71bbf0b372
4
- data.tar.gz: a6f3ef4a3cb964f3c326717ed373678330fa190147414b2ecbdd1771a1af7a92
3
+ metadata.gz: f921d89549f7203b1e80f23a4e7b4c7c20634120eac39d551a05ba41fc986625
4
+ data.tar.gz: 7af7692a9eec9676df25822f2988d00fe73a863cfabf2e4294c51747f1bff743
5
5
  SHA512:
6
- metadata.gz: a07f29e10a85c266b758a2841392de8e769c3d3bf612c3e639c58cffa445d49b4eac0cb1c0af403a6a26a4be26c811e29ba0eb46966dadd10b803134bd020848
7
- data.tar.gz: 84cfb71180c318d40a7026ae81bc8bab265a938e896462e0b1912fb2703a1ea8b79066bd2944c13fe04766e07a598796569fac0cae8fdced9c70034fd521db19
6
+ metadata.gz: f0e6360036a9b2c80c96899d00129a0e270fbb15b7d070d67fa54abe45c2c02f38ed3ed95c4aa0c055b4934217030f504c049b9ac09c7a0d0c3a2dfd0c3b00ee
7
+ data.tar.gz: f5c29754f917bb57d50dfe8658d5d1c0c91fcfaded23ca2563595e59a40f46f59f52efb440d8599a7118b4182a2fce41c9286fa207fc13aff71b6d652ef3efc2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
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
+
1
5
  # 7.2.0
2
6
 
3
7
  * Suppress noisy Puma::HttpParserError errors ([#292](https://github.com/alphagov/govuk_app_config/pull/292))
@@ -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.2.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.2.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-05-10 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