setStatus abstract method

void setStatus(
  1. StatusCode status, {
  2. String description,
})

Sets the status to the Span.

If used, this will override the default Span status. Default status code is api.StatusCode.unset.

Only the value of the last call will be recorded, and implementations are free to ignore previous calls.

Implementation

void setStatus(api.StatusCode status, {String description});