def METHOD_NAME(self, spans):
    collector_spans = translate_to_collector(spans)
    service_request = trace_service_pb2.ExportTraceServiceRequest(
        node=self.node, spans=collector_spans
    )
    yield service_request