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 ofLogRecordDatathat have not yet been exported.(package private) static LogRecordExportershutdown()Shutdown the log exporter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:LogRecordExporterExports the collections of givenLogRecordData.- Specified by:
exportin interfaceLogRecordExporter- Parameters:
logs- the collection ofLogRecordDatato be exported- Returns:
- the result of the export, which is often an asynchronous operation
-
flush
Description copied from interface:LogRecordExporterExports the collection ofLogRecordDatathat have not yet been exported.- Specified by:
flushin interfaceLogRecordExporter- Returns:
- the result of the flush, which is often an asynchronous operation
-
shutdown
Description copied from interface:LogRecordExporterShutdown the log exporter. Called whenSdkLoggerProvider.shutdown()is called when this exporter is registered to the provider viaBatchLogRecordProcessororSimpleLogRecordProcessor.- Specified by:
shutdownin interfaceLogRecordExporter- Returns:
- a
CompletableResultCodewhich is completed when shutdown completes
-