def end_span(kvs = {}, end_time = ::Instana::Util.now_in_ms)
      return unless @current_span

      @current_span.close(end_time)
      add_info(kvs) if kvs && !kvs.empty?
      @current_span = @current_span.parent unless @current_span.is_root?
    end
def end_span(kvs = {}, end_time = ::Instana::Util.now_in_ms)
      return unless @current_span

      @current_span.close(end_time)
      add_info(kvs) if kvs && !kvs.empty?
      @current_span = @current_span.parent unless @current_span.is_root?
    end
Close out the current span and set the parent as
 the current span

 @param kvs [Hash] list of key values to be reported in the span