Adds link_to_gfm method instrumentation

This commit is contained in:
Tiago Botelho 2017-07-25 10:46:01 +01:00
parent ea6dfcad9f
commit 4236c2f055
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,4 @@
---
title: Add instrumentation to MarkupHelper#link_to_gfm
merge_request: 13069
author:

View file

@ -114,6 +114,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/34509
instrumentation.instrument_method(MarkupHelper, :link_to_gfm)
# Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159
instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits)
end