How to use the opentelemetry-sdk.src.opentelemetry.sdk.trace.export.SpanExportResult.FAILED_NOT_RETRYABLE function in opentelemetry-sdk

To help you get started, we’ve selected a few opentelemetry-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-telemetry / opentelemetry-python / opentelemetry-sdk / src / opentelemetry / sdk / trace / export / in_memory_span_exporter.py View on Github external
def export(self, spans: typing.Sequence[Span]) -> SpanExportResult:
        """Stores a list of spans in memory."""
        if self._stopped:
            return SpanExportResult.FAILED_NOT_RETRYABLE
        with self._lock:
            self._finished_spans.extend(spans)
        return SpanExportResult.SUCCESS