code: def queued_spans(self):
          
          spans = []
          while True:
              try:
                  s = self.queue.get(False)
              except queue.Empty:
                  break
              else:
                  spans.append(s)
          return spans
docs: Get all of the spans in the queue