summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-21 19:13:06 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-21 19:15:32 +0200
commitc5cb68fd03dfb8caea7866d1e9f73af067229604 (patch)
tree39ad316c648778c769224ca2d87b86a1a345781b /config/initializers
parentd2bf73b7763a4cf51d3319cf8056534a2ce22fda (diff)
downloadgitlab-ce-c5cb68fd03dfb8caea7866d1e9f73af067229604.tar.gz
Instrument Gitlab::GitAccess/GitAccessWiki
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/metrics.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb
index 22fe51a4534..283936d0efc 100644
--- a/config/initializers/metrics.rb
+++ b/config/initializers/metrics.rb
@@ -107,6 +107,10 @@ if Gitlab::Metrics.enabled?
config.instrument_methods(const)
config.instrument_instance_methods(const)
end
+
+ # Instrument the classes used for checking if somebody has push access.
+ config.instrument_instance_methods(Gitlab::GitAccess)
+ config.instrument_instance_methods(Gitlab::GitAccessWiki)
end
GC::Profiler.enable