Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-06-21 12:18:19 +0300
committerAndrew Newdigate <andrew@gitlab.com>2019-06-25 12:26:26 +0300
commit9c7ca72dd90d7793e65672424b91387c46119ca1 (patch)
tree70dd8043235988092134fab5a53574e60ac65b9a /lib/banzai/filter/commit_reference_filter.rb
parent32806aee150239d60783c77ae17811cba139a3ef (diff)
Adds metrics to measure cost of expensive operationsgitaly-counters
Adds histogram metrics to help us determine which the most expensive database transactions in the system are, as well as which Gitaly n+1 blocks are costing us the time.
Diffstat (limited to 'lib/banzai/filter/commit_reference_filter.rb')
-rw-r--r--lib/banzai/filter/commit_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/commit_reference_filter.rb b/lib/banzai/filter/commit_reference_filter.rb
index c3e5ac41cb8..d2880cb7e1d 100644
--- a/lib/banzai/filter/commit_reference_filter.rb
+++ b/lib/banzai/filter/commit_reference_filter.rb
@@ -23,7 +23,7 @@ module Banzai
if project && project.valid_repo?
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/43894
- Gitlab::GitalyClient.allow_n_plus_1_calls { project.commit(id) }
+ Gitlab::GitalyClient.allow_n_plus_1_calls("gitlab-ce#43894") { project.commit(id) }
end
end