summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-08-28 14:35:05 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-08-28 14:35:05 +0000
commit7ccef75a26bc4997e04c109007e6c6ee004574cb (patch)
treeae474f0addc4e48c5bb2461fba050def8d195afd /config
parent7dbb86783d785d4ba2b5cf97eb88653fd9197e3c (diff)
parent7ba19ab620f5e89a6ff15df8603b315cd154bc6c (diff)
downloadgitlab-ce-7ccef75a26bc4997e04c109007e6c6ee004574cb.tar.gz
Merge branch '36061-mr-ref' into 'master'
Instrument MergeRequest#ensure_ref_fetched See merge request !13876
Diffstat (limited to 'config')
-rw-r--r--config/initializers/8_metrics.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb
index 2aeb94d47cd..370a976b64a 100644
--- a/config/initializers/8_metrics.rb
+++ b/config/initializers/8_metrics.rb
@@ -119,6 +119,9 @@ def instrument_classes(instrumentation)
# Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159
instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits)
+
+ # Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/36061
+ instrumentation.instrument_instance_method(MergeRequest, :ensure_ref_fetched)
end
# rubocop:enable Metrics/AbcSize