From b9b0fc8db1fda57998a15cde076db1e38a3a5d4d Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 4 Jul 2018 16:11:47 +0100 Subject: [PATCH] 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. --- lib/gitlab/gitaly_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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