diff --git a/config/initializers/prometheus.rb b/config/initializers/prometheus.rb index 97d57ab0..2e2ce06c 100644 --- a/config/initializers/prometheus.rb +++ b/config/initializers/prometheus.rb @@ -8,7 +8,7 @@ PrometheusExporter::Client.default = PrometheusExporter::Client.new(host: ENV.fetch('PROMETHEUS_EXPORTER'), port: 9091) -if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE +if Rails.env.production? && !EnvConfig.REGISTRATION_LIVE_SITE? PrometheusExporter::Instrumentation::Process.start(type: 'wca-registration-handler-staging', labels: { process: '1' }) suffix = '-staging' else