RecordingSpanExporter class final

A SpanExporter that keeps spans in a list, for tests.

Implemented types

Constructors

RecordingSpanExporter([List<Span>? spans])
Creates an exporter that records into spans.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spans → List<Span>
The spans exported so far, in the order they finished.
final

Methods

export(Span span) → void
Called once per span, after it finished.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited