diff options
author | Sean McGivern <sean@gitlab.com> | 2017-06-14 12:01:38 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-06-14 12:01:38 +0100 |
commit | 54c0c0cd170f6c4be8242428f409950e16fcea91 (patch) | |
tree | b5ee1998d4c81fcdb7eeb9280ad7990dc9331084 /config | |
parent | fbfddd99d6a4846e807dc8c2dadd64d3d120fb23 (diff) | |
download | gitlab-ce-54c0c0cd170f6c4be8242428f409950e16fcea91.tar.gz |
Instrument MergeRequestDiff#load_commitsinstrument-merge-request-diff-load-commits
This instrumentation isn't needed strictly for performance measurements, but
just to see which controller actions call this method at all. See
<https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159> for more
details.
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 |