SpanExporter class abstract interface

Where finished spans go.

One method, so a binding to OpenTelemetry, Jaeger, a log line, or a test list is a class with one override. Nothing in this package talks to a collector; that stays an application's choice and an application's dependency.

final class LoggingSpans implements SpanExporter {
  @override
  void export(Span span) => print('${span.name} ${span.duration}');
}
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

export(Span span) → void
Called once per span, after it finished.
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