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:
authorSean McGivern <sean@gitlab.com>2018-07-04 18:11:47 +0300
committerSean McGivern <sean@gitlab.com>2018-07-04 18:11:47 +0300
commitb9b0fc8db1fda57998a15cde076db1e38a3a5d4d (patch)
tree94239ec49af2ccaa0bc4dace2f56de90273a2edb /lib/gitlab/gitaly_client.rb
parent0482e706df315a236fdf9c4e2777af1d8e998b5c (diff)
Clean up Gitaly N+1 stack traces
We don't need to know the details of every library involved in these calls; they will always originate in the GitLab app itself.
Diffstat (limited to 'lib/gitlab/gitaly_client.rb')
-rw-r--r--lib/gitlab/gitaly_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb
index 620362b52a9..66e781a8e5b 100644
--- a/lib/gitlab/gitaly_client.rb
+++ b/lib/gitlab/gitaly_client.rb
@@ -429,7 +429,7 @@ module Gitlab
def self.count_stack
return unless RequestStore.active?
- stack_string = caller.drop(1).join("\n")
+ stack_string = Gitlab::Profiler.clean_backtrace(caller).drop(1).join("\n")
RequestStore.store[:stack_counter] ||= Hash.new