@Override
  public boolean onNext(Result result) {
    return TraceUtil.trace(() -> delegate.onNext(result), "TracedScanResultConsumer#onNext");
  }
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