def log_exit(name, kvs = {})
      return unless tracing?

      if ::Instana.debug? || ::Instana.test?
        unless current_span_name?(name)
          ::Instana.logger.debug "Span mismatch: Attempt to exit #{name} span but #{current_span.name} is active."
        end
      end

      self.current_trace.end_span(kvs)
    end
def log_exit(name, kvs = {})
      return unless tracing?

      if ::Instana.debug? || ::Instana.test?
        unless current_span_name?(name)
          ::Instana.logger.debug "Span mismatch: Attempt to exit #{name} span but #{current_span.name} is active."
        end
      end

      self.current_trace.end_span(kvs)
    end
Closes out the current span

 @note `name` isn't really required but helps keep sanity that
 we're closing out the span that we really want to close out.

 @param name [String] the name of the span to exit (close out)
 @param kvs [Hash] list of key values to be reported in the span