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

opentelemetry-sdk

OpenTelemetry Python SDK

Apache-2.0
Latest version published 11 days ago

Package Health Score

97 / 100
Full package analysis