code: def record_span(self, span):
          
          if instana.singletons.agent.can_send() or "INSTANA_TEST" in os.environ:
              json_span = None
  
              if span.operation_name in self.registered_spans:
                  json_span = self.build_registered_span(span)
              else:
                  json_span = self.build_sdk_span(span)
  
              self.queue.put(json_span)
docs: Convert the passed BasicSpan into an JsonSpan and
          add it to the span queue