Skip to content

Commit

Permalink
Merge pull request #304 from alphagov/add-open-telemetry
Browse files Browse the repository at this point in the history
Fix prometheus_exporter to method patching compatible with open telemetry
  • Loading branch information
theseanything authored Jul 4, 2023
2 parents ff06080 + ad306e9 commit 98b439e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 8.1.1

* Fix prometheus_exporter to method patching compatible with open telemetry.

# 8.1.0

* Add ability to enable Open Telemetry instrumentation for Rails applications.
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk_app_config/govuk_prometheus_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.configure
server.start

if defined?(Rails)
Rails.application.middleware.unshift PrometheusExporter::Middleware
Rails.application.middleware.unshift PrometheusExporter::Middleware, instrument: :prepend
end

if defined?(Sinatra)
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 = "8.1.0".freeze
VERSION = "8.1.1".freeze
end

0 comments on commit 98b439e

Please sign in to comment.