failure abstract method

void failure(
  1. String? correlationId,
  2. String component,
  3. String operation,
  4. Exception error,
  5. int duration,
)

Records an operation failure with its name, duration and error

  • correlationId (optional) transaction id to trace execution through call chain.
  • component a name of called component
  • operation a name of the executed operation.
  • error an error object associated with this trace.
  • duration execution duration in milliseconds.

Implementation

void failure(String? correlationId, String component, String operation,
    Exception error, int duration);