mirror of https://github.com/mastodon/mastodon
Disable installation of instrumentation hooks (#34192)
This commit is contained in:
parent
8c59fbe41b
commit
e74774e366
|
@ -24,6 +24,6 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
|
|||
else
|
||||
# Include stripped down version of PrometheusExporter::Middleware that only collects queue time
|
||||
require 'mastodon/middleware/prometheus_queue_time'
|
||||
Rails.application.middleware.unshift Mastodon::Middleware::PrometheusQueueTime
|
||||
Rails.application.middleware.unshift Mastodon::Middleware::PrometheusQueueTime, instrument: false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue