diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-15 11:27:50 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-15 18:57:24 +0300 |
commit | a6582d247e14307673ad7c9823f4b47df5538670 (patch) | |
tree | 99d4aebd65e70a34cf3819d6fac244e38e91f7cb /config | |
parent | c46a92a9837b39eab27982e9c59f72b78ab29447 (diff) |
Merge branch 'instrument-merge-request-diff-load-commits' into 'master'
Instrument MergeRequestDiff#load_commits
See merge request !12162
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/8_metrics.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb index 5e0eefdb154..508b886d6a0 100644 --- a/config/initializers/8_metrics.rb +++ b/config/initializers/8_metrics.rb @@ -113,6 +113,9 @@ def instrument_classes(instrumentation) # This is a Rails scope so we have to instrument it manually. instrumentation.instrument_method(Project, :visible_to_user) + + # Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159 + instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits) end # rubocop:enable Metrics/AbcSize |