Merge branch '36061-mr-ref-instrument' into 'master'

Instrument MergeRequest#fetch_ref

See merge request !13980
This commit is contained in:
Sean McGivern 2017-09-01 09:08:30 +00:00
commit 5dd157be16
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Instrument MergeRequest#fetch_ref
merge_request:
author:
type: other

View File

@ -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