govuk_app_config 9.20.6 → 9.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 968a00b62f57f5a56081dfedee29a8f1c6989c4d25ef9103d46b66bfa0848b54
4
- data.tar.gz: 80b0d9ca6865b7490170876b596cbf11bbed07dc1b1b9d2c2cf9574e79f9981e
3
+ metadata.gz: 9c22a97238f5209bfd19e03115c7bd12d6fa85111e24f1a850f599cbd6e13a25
4
+ data.tar.gz: b428022bcb672a10e8c64974c8710482bb7dee0cdb6905c930cb7a2d43418330
5
5
  SHA512:
6
- metadata.gz: 35cb7aa1d5580a962330116dc34c9161369dea2952d1f39c2e4e360fa3a1d67e4bb674845b774a4f86170a57a20fba9e50ce60e08a605f676a732f8adf397e55
7
- data.tar.gz: acaf3286daf918c2d8fcdfd10869203f63461a23e778e24b797251141f94436cd0df43d746d7f380f35caceee88fd3d061bbf087413420a309a47ee4de34ba19
6
+ metadata.gz: d578a4ead56f43a869121b5a40ea52502741f8d8ae27d32e8507b93f5340971b59555d42b36ed3f6870e06e1ecd835420270618b8a7bc206abae43100e371554
7
+ data.tar.gz: c3148eaad2bddb8a311f785213db5fa81b1562b4317332383bcc3e4b6ec6b5074079ce25856652bc1c7c7a857bcfc5abcd089c0d17820cb1a7c92119a03f9043
@@ -38,7 +38,7 @@ jobs:
38
38
  - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39
39
  with:
40
40
  ref: ${{ inputs.ref || github.ref }}
41
- - uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.0
41
+ - uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
42
42
  with:
43
43
  ruby-version: ${{ matrix.ruby }}
44
44
  bundler-cache: true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 9.21.0
2
+
3
+ * Add Prometheus monitoring of Puma processes
4
+
5
+ # 9.20.7
6
+
7
+ * Implemented workaround for Logstasher initializer conflict under Rails 8.1
8
+
1
9
  # 9.20.6
2
10
 
3
11
  * Update dependencies
@@ -1,3 +1,5 @@
1
+ require "prometheus_exporter/instrumentation"
2
+
1
3
  module GovukPuma
2
4
  def self.configure_rails(config)
3
5
  config.port ENV.fetch("PORT", 3000)
@@ -35,6 +37,13 @@ module GovukPuma
35
37
  ENV["BUNDLE_GEMFILE"] = "#{ENV['GOVUK_APP_ROOT']}/Gemfile"
36
38
  end
37
39
 
40
+ config.after_worker_boot do
41
+ unless PrometheusExporter::Instrumentation::Puma.started?
42
+ PrometheusExporter::Instrumentation::Puma.start
43
+ end
44
+ PrometheusExporter::Instrumentation::Process.start(type: "puma_worker")
45
+ end
46
+
38
47
  # Allow puma to be restarted by `rails restart` command.
39
48
  config.plugin :tmp_restart
40
49
  end
@@ -1,5 +1,20 @@
1
1
  require "plek"
2
2
 
3
+ # Workaround for Logstasher initializer conflict under Rails 8.1
4
+ begin
5
+ require "logstasher/railtie"
6
+
7
+ if defined?(LogStasher::Railtie)
8
+ # Remove duplicate initializers that cause cyclic dependency
9
+ LogStasher::Railtie.initializers.delete_if { |i| i.name == :logstasher }
10
+
11
+ # Replace with a single clean initializer
12
+ LogStasher::Railtie.initializer(:logstasher_fixed, after: :load_config_initializers) {}
13
+ end
14
+ rescue LoadError, NameError
15
+ # Skip if Logstasher not present
16
+ end
17
+
3
18
  module GovukAppConfig
4
19
  class Railtie < Rails::Railtie
5
20
  initializer "govuk_app_config.configure_govuk_proxy" do |app|
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.20.6".freeze
2
+ VERSION = "9.21.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.20.6
4
+ version: 9.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev