@Override
  public void onError(Throwable error) {
    TraceUtil.trace(() -> delegate.onError(error), "TracedScanResultConsumer#onError");
  }
A wrapper over {@link SimpleScanResultConsumer} that adds tracing of spans to its implementation.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TracedScanResultConsumer.java