public static void setError(Span span, Throwable error) {
    span.recordException(error);
    span.setStatus(StatusCode.ERROR);
  }
Trace an asynchronous operation, and finish the create {@link Span} when all the given
{@code futures} are completed.
hbase-common/src/main/java/org/apache/hadoop/hbase/trace/TraceUtil.java