public static Runnable tracedRunnable(final Runnable runnable, final String spanName) {
    return tracedRunnable(runnable, () -> createSpan(spanName));
  }
Wrap the provided {@code runnable} in a {@link Runnable} that is traced.
hbase-common/src/main/java/org/apache/hadoop/hbase/trace/TraceUtil.java