TraceTiming class Null safety

Timing object returned by ITracer.beginTrace to end timing of execution block and record the associated trace.

Example

var timing = tracer.beginTrace("mymethod.exec_time"); try { ... timing.endTrace(); } catch (err) { timing.endFailure(err); }

Constructors

TraceTiming(String? correlationId, String component, String operation, ITracer? tracer)
Creates a new instance of the timing tracer object. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

endFailure(Exception error) → void
Ends timing of a failed block, calculates elapsed time and records the associated trace. [...]
endTrace() → void
Ends timing of an execution block, calculates elapsed time and records the associated trace.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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