BufferingSpanReporter

kamon.testkit.TestSpanReporter.BufferingSpanReporter
class BufferingSpanReporter extends SpanReporter

A SpanReporter that buffers all reported Spans and exposes them.

Attributes

Graph
Supertypes
trait SpanReporter
trait Module
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def clear(): Unit

Discards all received Spans.

Discards all received Spans.

Attributes

def nextSpan(): Option[Finished]

Returns and discards the latest received Span, if any.

Returns and discards the latest received Span, if any.

Attributes

override def reconfigure(config: Config): Unit

Signals that a new configuration object has been provided to Kamon. Modules should ensure that their internal settings are in sync with the provided configuration.

Signals that a new configuration object has been provided to Kamon. Modules should ensure that their internal settings are in sync with the provided configuration.

Attributes

Definition Classes
Module
override def reportSpans(spans: Seq[Finished]): Unit

Attributes

Definition Classes
SpanReporter
def spans(): Seq[Finished]

Returns all remaining Spans in the buffer.

Returns all remaining Spans in the buffer.

Attributes

def spans(delay: Duration): Seq[Finished]

Returns all remaining Spans in the buffer after waiting for the provided delay.

Returns all remaining Spans in the buffer after waiting for the provided delay.

Attributes

def spans(delay: Duration): Seq[Finished]

Returns all remaining Spans in the buffer after waiting for the provided delay.

Returns all remaining Spans in the buffer after waiting for the provided delay.

Attributes

override def stop(): Unit

Signals that the module should be stopped and all acquired resources, if any, should be released.

Signals that the module should be stopped and all acquired resources, if any, should be released.

Attributes

Definition Classes
Module