Class NoopSpanExporter

  • All Implemented Interfaces:
    SpanExporter, java.io.Closeable, java.lang.AutoCloseable

    final class NoopSpanExporter
    extends java.lang.Object
    implements SpanExporter
    • Constructor Detail

      • NoopSpanExporter

        NoopSpanExporter()
    • Method Detail

      • 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.
      • flush

        public CompletableResultCode flush()
        Description copied from interface: SpanExporter
        Exports the collection of sampled Spans that have not yet been exported. 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:
        flush in interface SpanExporter
        Returns:
        the result of the flush, which is often an asynchronous operation.
      • toString

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