summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/metrics/instrumentation_spec.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-05-12 15:14:14 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-05-12 15:15:45 +0200
commit945c5b3fe6e0552f77da8b1a1efe75cd04434f53 (patch)
tree1f2daed0591c54419a7b6b94b50766071920a31f /spec/lib/gitlab/metrics/instrumentation_spec.rb
parent624dc104a81293f4c3dae7746404868dff74d42f (diff)
downloadgitlab-ce-945c5b3fe6e0552f77da8b1a1efe75cd04434f53.tar.gz
Removed tracking of total method execution timestotal-method-time
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 'spec/lib/gitlab/metrics/instrumentation_spec.rb')
-rw-r--r--spec/lib/gitlab/metrics/instrumentation_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/lib/gitlab/metrics/instrumentation_spec.rb b/spec/lib/gitlab/metrics/instrumentation_spec.rb
index 5c885a7a982..7b86450a223 100644
--- a/spec/lib/gitlab/metrics/instrumentation_spec.rb
+++ b/spec/lib/gitlab/metrics/instrumentation_spec.rb
@@ -56,9 +56,6 @@ describe Gitlab::Metrics::Instrumentation do
allow(described_class).to receive(:transaction).
and_return(transaction)
- expect(transaction).to receive(:increment).
- with(:method_duration, a_kind_of(Numeric))
-
expect(transaction).to receive(:add_metric).
with(described_class::SERIES, an_instance_of(Hash),
method: 'Dummy.foo')
@@ -139,9 +136,6 @@ describe Gitlab::Metrics::Instrumentation do
allow(described_class).to receive(:transaction).
and_return(transaction)
- expect(transaction).to receive(:increment).
- with(:method_duration, a_kind_of(Numeric))
-
expect(transaction).to receive(:add_metric).
with(described_class::SERIES, an_instance_of(Hash),
method: 'Dummy#bar')