code: @javax.annotation.Nullable
    static Span getCurrentSpan() {
      SpanContext currentSpanContext = CURRENT_SPAN.get();
      return currentSpanContext != null ? currentSpanContext.span : null;
    }
docs: Get the current span out of the thread context.