diff --git a/config/initializers/prometheus.rb b/config/initializers/prometheus.rb index 9d25d4ea..a8ffc08d 100644 --- a/config/initializers/prometheus.rb +++ b/config/initializers/prometheus.rb @@ -1,15 +1,12 @@ # in config/initializers/prometheus.rb if Rails.env != "test" require 'prometheus_exporter/middleware' + require 'prometheus_exporter/instrumentation' # This reports stats per request like HTTP status and timings Rails.application.middleware.unshift PrometheusExporter::Middleware -end -if Rails.env != "test" - require 'prometheus_exporter/instrumentation' - - # this reports basic process stats like RSS and GC info, type master + # this reports basic process stats like RSS and GC info, type master # means it is instrumenting the master process PrometheusExporter::Instrumentation::Process.start(type: "master") end