TraceSpan class

Represents a single tracing span with timing information

Constructors

TraceSpan(String id, Map<String, dynamic> data)

Properties

data Map<String, dynamic>
final
endTime DateTime?
getter/setter pair
error ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
final
result ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime
final

Methods

fail(dynamic err) → void
Mark the span as failed with error err: Error object or message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
success(dynamic res) → void
Mark the span as successfully completed res: Result value of the traced operation
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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