diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-05-17 01:10:32 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-05-17 01:16:49 +0300 |
commit | b933367ab3d8df50f0ebd0690d306536f7a654db (patch) | |
tree | fa989c68e2de23557835942ebeaeefe37355ce5a /config | |
parent | 4ade5ff42511d7931bebb28098c2dc2192caba3e (diff) |
Instrument all Grape API helpers
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/metrics.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb index b2d08d87bac..2338916e9da 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/metrics.rb @@ -118,6 +118,8 @@ if Gitlab::Metrics.enabled? # Instrument the classes used for checking if somebody has push access. config.instrument_instance_methods(Gitlab::GitAccess) config.instrument_instance_methods(Gitlab::GitAccessWiki) + + config.instrument_instance_methods(API::Helpers) end GC::Profiler.enable |