summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-01-04 12:14:36 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2016-01-04 12:14:36 +0100
commit66a997a91403eef62ffd9fb789e899619d021a26 (patch)
treef7ca97b6912a3924c8dfcc635427976360824db8 /config
parent96075be6f4688a59335130dc796132ad4f232442 (diff)
downloadgitlab-ce-66a997a91403eef62ffd9fb789e899619d021a26.tar.gz
Track total query/view timings in transactions
Diffstat (limited to 'config')
-rw-r--r--config/initializers/metrics.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb
index ebb20be7283..52ace27b7ae 100644
--- a/config/initializers/metrics.rb
+++ b/config/initializers/metrics.rb
@@ -6,6 +6,7 @@ if Gitlab::Metrics.enabled?
# These are manually require'd so the classes are registered properly with
# ActiveSupport.
require 'gitlab/metrics/subscribers/action_view'
+ require 'gitlab/metrics/subscribers/active_record'
Gitlab::Application.configure do |config|
config.middleware.use(Gitlab::Metrics::RackMiddleware)