diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-25 10:01:47 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-25 10:01:47 +0200 |
commit | 041d105ce8e0eef5f81e2d9e22a6a81342278257 (patch) | |
tree | f5bfd01ba46a354b60615a9613792af57296d66a /kamon-testkit/src/main/scala/kamon/testkit | |
parent | c52bae2bb384f7b8fcb056992e72bfca94c49a43 (diff) | |
download | Kamon-041d105ce8e0eef5f81e2d9e22a6a81342278257.tar.gz Kamon-041d105ce8e0eef5f81e2d9e22a6a81342278257.tar.bz2 Kamon-041d105ce8e0eef5f81e2d9e22a6a81342278257.zip |
add a clear() function to the test span reporter
Diffstat (limited to 'kamon-testkit/src/main/scala/kamon/testkit')
-rw-r--r-- | kamon-testkit/src/main/scala/kamon/testkit/TestSpanReporter.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kamon-testkit/src/main/scala/kamon/testkit/TestSpanReporter.scala b/kamon-testkit/src/main/scala/kamon/testkit/TestSpanReporter.scala index 0a93e4b5..8aa49af7 100644 --- a/kamon-testkit/src/main/scala/kamon/testkit/TestSpanReporter.scala +++ b/kamon-testkit/src/main/scala/kamon/testkit/TestSpanReporter.scala @@ -32,6 +32,9 @@ class TestSpanReporter() extends SpanReporter { def nextSpan(): Option[FinishedSpan] = Option(reportedSpans.poll()) + def clear(): Unit = + reportedSpans.clear() + override def start(): Unit = {} override def stop(): Unit = {} override def reconfigure(config: Config): Unit = {} |