endFailure method

void endFailure(
  1. Exception error
)

Ends timing of a failed block, calculates elapsed time and records the associated trace.

  • error an error object associated with this trace.

Implementation

void endFailure(Exception error) {
  if (_tracer != null) {
    var elapsed = DateTime.now().microsecond - _start;
    _tracer!.failure(_correlationId, _component, _operation, error, elapsed);
  }
}