diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-21 19:13:06 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-21 19:15:32 +0200 |
commit | c5cb68fd03dfb8caea7866d1e9f73af067229604 (patch) | |
tree | 39ad316c648778c769224ca2d87b86a1a345781b /config/initializers | |
parent | d2bf73b7763a4cf51d3319cf8056534a2ce22fda (diff) | |
download | gitlab-ce-c5cb68fd03dfb8caea7866d1e9f73af067229604.tar.gz |
Instrument Gitlab::GitAccess/GitAccessWiki
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/metrics.rb | 4 |
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 |