diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2019-06-21 11:18:19 +0200 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2019-06-25 11:26:26 +0200 |
commit | 9c7ca72dd90d7793e65672424b91387c46119ca1 (patch) | |
tree | 70dd8043235988092134fab5a53574e60ac65b9a /doc/development/gitaly.md | |
parent | 32806aee150239d60783c77ae17811cba139a3ef (diff) | |
download | gitlab-ce-gitaly-counters.tar.gz |
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 'doc/development/gitaly.md')
-rw-r--r-- | doc/development/gitaly.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/gitaly.md b/doc/development/gitaly.md index a0585fed2fc..eb20172454f 100644 --- a/doc/development/gitaly.md +++ b/doc/development/gitaly.md @@ -135,8 +135,8 @@ of the [Gitaly Team](https://gitlab.com/groups/gl-gitaly/group_members) for assi Once the source has been found, wrap it in an `allow_n_plus_1_calls` block, as follows: ```ruby -# n+1: link to n+1 issue -Gitlab::GitalyClient.allow_n_plus_1_calls do +# n+1: link to n+1 issue: gitlab.com/gitlab-org/gitlab-ce/issues/123 +Gitlab::GitalyClient.allow_n_plus_1_calls("gitlab-ce#123") do # original code commits.each { |commit| ... } end |