Package io.opentelemetry.sdk.logs.export
Class NoopLogRecordExporter
java.lang.Object
io.opentelemetry.sdk.logs.export.NoopLogRecordExporter
- All Implemented Interfaces:
LogRecordExporter
,Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexport
(Collection<LogRecordData> logs) Exports the collections of givenLogRecordData
.flush()
Exports the collection ofLogRecordData
that have not yet been exported.(package private) static LogRecordExporter
shutdown()
Shutdown the log exporter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.opentelemetry.sdk.logs.export.LogRecordExporter
close
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopLogRecordExporter
NoopLogRecordExporter()
-
-
Method Details
-
getInstance
-
export
Description copied from interface:LogRecordExporter
Exports the collections of givenLogRecordData
.- Specified by:
export
in interfaceLogRecordExporter
- Parameters:
logs
- the collection ofLogRecordData
to be exported- Returns:
- the result of the export, which is often an asynchronous operation
-
flush
Description copied from interface:LogRecordExporter
Exports the collection ofLogRecordData
that have not yet been exported.- Specified by:
flush
in interfaceLogRecordExporter
- Returns:
- the result of the flush, which is often an asynchronous operation
-
shutdown
Description copied from interface:LogRecordExporter
Shutdown the log exporter. Called whenSdkLoggerProvider.shutdown()
is called when this exporter is registered to the provider viaBatchLogRecordProcessor
orSimpleLogRecordProcessor
.- Specified by:
shutdown
in interfaceLogRecordExporter
- Returns:
- a
CompletableResultCode
which is completed when shutdown completes
-