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 sampledSpan
s.flush()
Exports the collection of sampledSpan
s that have not yet been exported.(package private) static SpanExporter
shutdown()
Called whenSdkTracerProvider.shutdown()
is called, if thisSpanExporter
is registered to aSdkTracerProvider
object.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:SpanExporter
Called to export sampledSpan
s. Note that export operations can be performed simultaneously depending on the type of span processor being used. However, theBatchSpanProcessor
will ensure that only one export can occur at a time.- Specified by:
export
in 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:SpanExporter
Exports the collection of sampledSpan
s that have not yet been exported. Note that export operations can be performed simultaneously depending on the type of span processor being used. However, theBatchSpanProcessor
will ensure that only one export can occur at a time.- Specified by:
flush
in interfaceSpanExporter
- Returns:
- the result of the flush, which is often an asynchronous operation.
-
shutdown
Description copied from interface:SpanExporter
Called whenSdkTracerProvider.shutdown()
is called, if thisSpanExporter
is registered to aSdkTracerProvider
object.- Specified by:
shutdown
in interfaceSpanExporter
- Returns:
- a
CompletableResultCode
which is completed when shutdown completes.
-
toString
-