mirror of
https://0xacab.org/sutty/sutty
synced 2024-05-21 13:20:50 +00:00
7 lines
207 B
Ruby
7 lines
207 B
Ruby
if Rails.env.production?
|
|
require 'prometheus_exporter/middleware'
|
|
|
|
# This reports stats per request like HTTP status and timings
|
|
Rails.application.middleware.unshift PrometheusExporter::Middleware
|
|
end
|