Class MultiSpanExporter

    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • MultiSpanExporter

        private MultiSpanExporter​(SpanExporter[] spanExporters)
    • Method Detail

      • create

        static SpanExporter create​(java.util.List<SpanExporter> spanExporters)
        Constructs and returns an instance of this class.
        Parameters:
        spanExporters - the exporters spans should be sent to
        Returns:
        the aggregate span exporter
      • export

        public CompletableResultCode export​(java.util.Collection<SpanData> spans)
        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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object