summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-08 17:54:52 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-08 17:54:52 +0200
commitc56f702ec3806606459e4edc3de097f1bb6baf4e (patch)
tree82f682b83e3384d8a45b2565023f551bc57f2fac /config
parent312a09e7aa8ad74481f52c632a976a2218fbf025 (diff)
downloadgitlab-ce-c56f702ec3806606459e4edc3de097f1bb6baf4e.tar.gz
Instrument Rails cache codeinstrument-rails-cache
This allows us to track how much time of a transaction is spent in dealing with cached data.
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 3e1deb8d306..a9fc38fb04a 100644
--- a/config/initializers/metrics.rb
+++ b/config/initializers/metrics.rb
@@ -7,6 +7,7 @@ if Gitlab::Metrics.enabled?
# ActiveSupport.
require 'gitlab/metrics/subscribers/action_view'
require 'gitlab/metrics/subscribers/active_record'
+ require 'gitlab/metrics/subscribers/rails_cache'
Gitlab::Application.configure do |config|
config.middleware.use(Gitlab::Metrics::RackMiddleware)