fail method

void fail(
  1. dynamic err
)

Mark the span as failed with error err: Error object or message

Implementation

void fail(dynamic err) {
  endTime = DateTime.now();
  error = err;
}