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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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