private static Span createSpan(String name, SpanKind kind) {
    return getGlobalTracer().spanBuilder(name).setSpanKind(kind).startSpan();
  }
Create a span with the given {@code kind}. Notice that, OpenTelemetry only expects one
{@link SpanKind#CLIENT} span and one {@link SpanKind#SERVER} span for a traced request, so use
this with caution when you want to create spans with kind other than {@link SpanKind#INTERNAL}.
hbase-common/src/main/java/org/apache/hadoop/hbase/trace/TraceUtil.java