Class NoopSpanExporter
java.lang.Object
io.opentelemetry.sdk.trace.export.NoopSpanExporter
- All Implemented Interfaces:
SpanExporter,Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexport(Collection<SpanData> spans) Called to export sampledSpans.flush()Exports the collection of sampledSpans that have not yet been exported.(package private) static SpanExportershutdown()Called whenSdkTracerProvider.shutdown()is called, if thisSpanExporteris registered to aSdkTracerProviderobject.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.trace.export.SpanExporter
close
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopSpanExporter
NoopSpanExporter()
-
-
Method Details
-
getInstance
-
export
Description copied from interface:SpanExporterCalled to export sampledSpans. Note that export operations can be performed simultaneously depending on the type of span processor being used. However, theBatchSpanProcessorwill ensure that only one export can occur at a time.- Specified by:
exportin interfaceSpanExporter- Parameters:
spans- the collection of sampled Spans to be exported.- Returns:
- the result of the export, which is often an asynchronous operation.
-
flush
Description copied from interface:SpanExporterExports the collection of sampledSpans that have not yet been exported. Note that export operations can be performed simultaneously depending on the type of span processor being used. However, theBatchSpanProcessorwill ensure that only one export can occur at a time.- Specified by:
flushin interfaceSpanExporter- Returns:
- the result of the flush, which is often an asynchronous operation.
-
shutdown
Description copied from interface:SpanExporterCalled whenSdkTracerProvider.shutdown()is called, if thisSpanExporteris registered to aSdkTracerProviderobject.- Specified by:
shutdownin interfaceSpanExporter- Returns:
- a
CompletableResultCodewhich is completed when shutdown completes.
-
toString
-