From 6c0a8fb6395fca11b48f7ad1cd2bd774f90ee7fd Mon Sep 17 00:00:00 2001 From: mladens Date: Wed, 12 Jul 2017 12:26:38 +0200 Subject: Remove span error counter, count from metric refined with error tag should be used --- kamon-core/src/test/scala/kamon/trace/SpanMetrics.scala | 4 ---- 1 file changed, 4 deletions(-) (limited to 'kamon-core/src/test/scala/kamon/trace') diff --git a/kamon-core/src/test/scala/kamon/trace/SpanMetrics.scala b/kamon-core/src/test/scala/kamon/trace/SpanMetrics.scala index 6f32e000..a4ce9882 100644 --- a/kamon-core/src/test/scala/kamon/trace/SpanMetrics.scala +++ b/kamon-core/src/test/scala/kamon/trace/SpanMetrics.scala @@ -26,8 +26,6 @@ class SpanMetrics extends WordSpecLike with Matchers { val errorHistogram = histogramMetric.refine(operationTag, errorTag).distribution() errorHistogram.count === 0 - val errorCount = histogramMetric.refine(operationTag, errorTag).distribution() - errorCount === 0 } "record correctly error latency and count" in { @@ -44,8 +42,6 @@ class SpanMetrics extends WordSpecLike with Matchers { val errorHistogram = histogramMetric.refine(operationTag, errorTag).distribution() errorHistogram.count === 1 - val errorCount = histogramMetric.refine(operationTag, errorTag).distribution() - errorCount === 1 } } -- cgit v1.2.3