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:
authorYorick Peterse <yorickpeterse@gmail.com>2016-05-12 16:14:14 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2016-05-12 16:15:45 +0300
commit945c5b3fe6e0552f77da8b1a1efe75cd04434f53 (patch)
tree1f2daed0591c54419a7b6b94b50766071920a31f /lib/gitlab/metrics/instrumentation.rb
parent624dc104a81293f4c3dae7746404868dff74d42f (diff)
Removed tracking of total method execution times
Because method call timings are inclusive (that is, they include the time of any sub method calls) this would lead to the total method execution time often being far greater than the total transaction time. Because this is incredibly confusing it's best to simply _not_ track the total method execution time, after all it's not that useful to begin with. Fixes gitlab-org/gitlab-ce#17239
Diffstat (limited to 'lib/gitlab/metrics/instrumentation.rb')
-rw-r--r--lib/gitlab/metrics/instrumentation.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/metrics/instrumentation.rb b/lib/gitlab/metrics/instrumentation.rb
index 708ef79f304..0f115893a15 100644
--- a/lib/gitlab/metrics/instrumentation.rb
+++ b/lib/gitlab/metrics/instrumentation.rb
@@ -154,8 +154,6 @@ module Gitlab
duration = (Time.now - start) * 1000.0
if duration >= Gitlab::Metrics.method_call_threshold
- trans.increment(:method_duration, duration)
-
trans.add_metric(Gitlab::Metrics::Instrumentation::SERIES,
{ duration: duration },
method: #{label.inspect})