Span class

Constructors

Span.new({required Tracer tracer, required TraceId traceId, required SpanId spanId, required Span? parent, required String name, required Map<String, dynamic> attributes, required SpanType? type})

Properties

attributes UnmodifiableMapView<String, dynamic>
no setter
endTimestamp DateTime?
no setter
events UnmodifiableListView<Event>
no setter
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
final
parent Span?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanId SpanId
final
startTimestamp DateTime?
no setter
traceId TraceId
final
tracer Tracer
final
type SpanType?
final

Methods

addEvent(String name, {Map<String, dynamic>? arguments}) → void
addExceptionEvent(dynamic error) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHasError() → void
start() → void
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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