Skip to content

Commit

Permalink
Merge pull request #377 from alphagov/fix-race-condition-for-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
theseanything authored Jun 5, 2024
2 parents aaba23c + 7d51e7f commit d0108d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 9.11.2

* Fix Logstasher monkey patch overriding patch from this library for OpenTelemetry errors ([#377](https://github.com/alphagov/govuk_app_config/pull/377))

# 9.11.1

* Fix OpenTelemetry errors when using with Logstasher gem ([#372](https://github.com/alphagov/govuk_app_config/pull/372))
Expand Down
2 changes: 2 additions & 0 deletions lib/govuk_app_config/govuk_json_logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def self.configure(&block)
config = Rails.application.config.logstasher
if (!config.controller_monkey_patch && config.controller_monkey_patch != false) || config.controller_monkey_patch == true
require_relative "./govuk_json_logging/rails_ext/action_controller/metal/instrumentation"
# Prevent the old monkey patch being applied
config.controller_monkey_patch = false
end

configuration = Configuration.new
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_app_config/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GovukAppConfig
VERSION = "9.11.1".freeze
VERSION = "9.11.2".freeze
end

0 comments on commit d0108d3

Please sign in to comment.