diff options
author | Rémy Coutable <remy@rymai.me> | 2016-08-04 10:19:29 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-08-04 10:19:29 +0000 |
commit | 2d4dca3b7f8d138c3c1d83a10a0df2c362b99a8e (patch) | |
tree | c76483d9302dabfbecae0d81f49d4df4e03cb1e3 | |
parent | d9a449a00bf72f20c4486302ace98b8a8b926b0a (diff) | |
parent | 9a934e25011baa7b68239ce6fdbe010ab88cf86f (diff) | |
download | gitlab-ce-2d4dca3b7f8d138c3c1d83a10a0df2c362b99a8e.tar.gz |
Merge branch 'instrument-gitlab-highlight' into 'master'
Instrument Gitlab::Highlight
## What does this MR do?
This instruments the class `Gitlab::Highlight`.
## Are there points in the code the reviewer needs to double check?
No.
## Why was this MR needed?
This class is not instrumented.
## What are the relevant issue numbers?
#18592
## Does this MR meet the acceptance criteria?
- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
See merge request !5644
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | config/initializers/metrics.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG index 9195aa45202..aee59b99382 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -35,6 +35,7 @@ v 8.11.0 (unreleased) - Include old revision in merge request update hooks (Ben Boeckel) - Add build event color in HipChat messages (David Eisner) - Make fork counter always clickable. !5463 (winniehell) + - Gitlab::Highlight is now instrumented - All created issues, API or WebUI, can be submitted to Akismet for spam check !5333 - The overhead of instrumented method calls has been reduced - Remove `search_id` of labels dropdown filter to fix 'Missleading URI for labels in Merge Requests and Issues view'. !5368 (Scott Le) diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb index b68a09ce730..cc8208db3c1 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/metrics.rb @@ -145,6 +145,9 @@ if Gitlab::Metrics.enabled? config.instrument_methods(Rinku) config.instrument_instance_methods(Repository) + + config.instrument_methods(Gitlab::Highlight) + config.instrument_instance_methods(Gitlab::Highlight) end GC::Profiler.enable |