Class MultiSpanExporter

  • All Implemented Interfaces:
    SpanExporter

    @Deprecated
    public final class MultiSpanExporter
    extends Object
    implements SpanExporter
    Implementation of the SpanExporter that simply forwards all received spans to a list of SpanExporter.

    Can be used to export to multiple backends using the same SpanProcessor like a SimpleSampledSpansProcessor or a BatchSampledSpansProcessor.

    • Method Detail

      • export

        public io.opentelemetry.sdk.common.CompletableResultCode export​(Collection<SpanData> spans)
        Deprecated.
        Description copied from interface: SpanExporter
        Called to export sampled Spans. Note that export operations can be performed simultaneously depending on the type of span processor being used. However, the BatchSpanProcessor will ensure that only one export can occur at a time.
        Specified by:
        export in interface SpanExporter
        Parameters:
        spans - the collection of sampled Spans to be exported.
        Returns:
        the result of the export, which is often an asynchronous operation.
      • flush

        public io.opentelemetry.sdk.common.CompletableResultCode flush()
        Deprecated.
        Flushes the data of all registered SpanExporters.
        Specified by:
        flush in interface SpanExporter
        Returns:
        the result of the operation
      • shutdown

        public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
        Deprecated.
        Description copied from interface: SpanExporter
        Called when TracerSdkManagement.shutdown() is called, if this SpanExporter is registered to a TracerSdkManagement object.
        Specified by:
        shutdown in interface SpanExporter
        Returns:
        a CompletableResultCode which is completed when shutdown completes.