From 4af91e564d71a7d61213ab87c88951853fae26c8 Mon Sep 17 00:00:00 2001
From: Renaud Chaput <renchap@gmail.com>
Date: Wed, 5 Feb 2025 14:49:47 +0100
Subject: [PATCH] Fix a missing `require` when enabling the local prometheus
 exporter with Sidekiq (#33840)

---
 config/initializers/prometheus_exporter.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/initializers/prometheus_exporter.rb b/config/initializers/prometheus_exporter.rb
index 197777e3b65..fab095658ff 100644
--- a/config/initializers/prometheus_exporter.rb
+++ b/config/initializers/prometheus_exporter.rb
@@ -2,6 +2,7 @@
 
 if ENV['MASTODON_PROMETHEUS_EXPORTER_ENABLED'] == 'true'
   if ENV['MASTODON_PROMETHEUS_EXPORTER_LOCAL'] == 'true'
+    require 'prometheus_exporter'
     require 'prometheus_exporter/server'
     require 'prometheus_exporter/client'