def export(self, spans: typing.Sequence[ReadableSpan]) -> SpanExportResult:
        """Stores a list of spans in memory."""
        if self._stopped:
            return SpanExportResult.FAILURE
        with self._lock:
            self._finished_spans.extend(spans)
        return SpanExportResult.SUCCESS
Stores a list of spans in memory.
packages/traceloop-sdk/traceloop/sdk/utils/in_memory_span_exporter.py