2
0

Disable installation of instrumentation hooks (#34192)

This commit is contained in:
David Roetzel
2025-03-17 16:50:13 +01:00
committed by GitHub
parent 8c59fbe41b
commit e74774e366

View File

@@ -24,6 +24,6 @@ if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
else else
# Include stripped down version of PrometheusExporter::Middleware that only collects queue time # Include stripped down version of PrometheusExporter::Middleware that only collects queue time
require 'mastodon/middleware/prometheus_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
end end