summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-01-21 11:27:31 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2016-01-21 11:27:31 +0100
commit7d1b51fac1c518dec5c33d30c4cc4e5bffdc127e (patch)
tree25c925190dc36039bab8d6b74f14e11b56778ce9 /config
parenta4ff270d59ef951538cb9d3962ebc8bc7d990016 (diff)
downloadgitlab-ce-7d1b51fac1c518dec5c33d30c4cc4e5bffdc127e.tar.gz
Instrument Gitlab::Git::Repository
This adds instrumentation for the instance methods of Gitlab::Git::Repository.
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 b1fe36dc21c..0945b93ed5d 100644
--- a/config/initializers/metrics.rb
+++ b/config/initializers/metrics.rb
@@ -49,6 +49,7 @@ if Gitlab::Metrics.enabled?
config.instrument_instance_methods(Gitlab::Shell)
config.instrument_methods(Gitlab::Git)
+ config.instrument_instance_methods(Gitlab::Git::Repository)
Gitlab::Git.constants.each do |name|
const = Gitlab::Git.const_get(name)