code: def close(self):
          
          with self.stop_lock:
              self.stopped = True
  
          return ioloop_util.submit(self._flush, io_loop=self.io_loop)
docs: Ensure that all spans from the queue are submitted.
          Returns Future that will be completed once the queue is empty.