summaryrefslogtreecommitdiff
path: root/config/initializers/8_metrics.rb
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-09-01 09:36:37 +0200
committerJarka Kadlecova <jarka@gitlab.com>2017-09-01 09:36:37 +0200
commit658e89a8b70b4b60581fe9fa26a1a0adb04c8039 (patch)
tree944ac57b3b3f1f97da4263c87d38aad35e5b3ef1 /config/initializers/8_metrics.rb
parentedd56aeaf48b119be2b29c5a03e03aa2a1152af9 (diff)
downloadgitlab-ce-658e89a8b70b4b60581fe9fa26a1a0adb04c8039.tar.gz
Instrument MergeRequest#fetch_ref36061-mr-ref-instrument
Diffstat (limited to 'config/initializers/8_metrics.rb')
-rw-r--r--config/initializers/8_metrics.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb
index 370a976b64a..5b455a8065a 100644
--- a/config/initializers/8_metrics.rb
+++ b/config/initializers/8_metrics.rb
@@ -122,6 +122,7 @@ def instrument_classes(instrumentation)
# Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/36061
instrumentation.instrument_instance_method(MergeRequest, :ensure_ref_fetched)
+ instrumentation.instrument_instance_method(MergeRequest, :fetch_ref)
end
# rubocop:enable Metrics/AbcSize