def end_span
      return unless (span = current_spans.pop)

      span.done

      enqueue.call span

      span
    end
def end_span
      return unless (span = current_spans.pop)

      span.done

      enqueue.call span

      span
    end
rubocop:enable Metrics/AbcSize, Metrics/PerceivedComplexity
 rubocop:enable Metrics/MethodLength, Metrics/CyclomaticComplexity