Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericfran-gds committed Aug 4, 2022
1 parent 4a03ddb commit a2f7c72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/govuk_app_config/govuk_prometheus_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def self.configure
if defined?(Sidekiq)
Sidekiq.configure_server do |config|
require "prometheus_exporter/instrumentation"
require 'prometheus_exporter/client'
config.server_middleware do |chain|
chain.add PrometheusExporter::Instrumentation::Sidekiq
end
Expand All @@ -29,7 +30,7 @@ def self.configure
if defined?(Rails)
Rails.application.middleware.unshift PrometheusExporter::Middleware
else defined?(Sinatra)
Sinatra.application.middleware.unshift PrometheusExporter::Middleware
use PrometheusExporter::Middleware
end
end
end
Expand Down

0 comments on commit a2f7c72

Please sign in to comment.