diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-08 18:54:52 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-08 18:54:52 +0300 |
commit | c56f702ec3806606459e4edc3de097f1bb6baf4e (patch) | |
tree | 82f682b83e3384d8a45b2565023f551bc57f2fac /config | |
parent | 312a09e7aa8ad74481f52c632a976a2218fbf025 (diff) |
Instrument Rails cache code
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.rb | 1 |
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) |