Package io.opentelemetry.sdk.logs.export
Class NoopLogRecordExporter
- java.lang.Object
-
- io.opentelemetry.sdk.logs.export.NoopLogRecordExporter
-
- All Implemented Interfaces:
LogRecordExporter,java.io.Closeable,java.lang.AutoCloseable
final class NoopLogRecordExporter extends java.lang.Object implements LogRecordExporter
-
-
Field Summary
Fields Modifier and Type Field Description private static LogRecordExporterINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopLogRecordExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableResultCodeexport(java.util.Collection<LogRecordData> logs)Exports the collections of givenLogRecordData.CompletableResultCodeflush()Exports the collection ofLogRecordDatathat have not yet been exported.(package private) static LogRecordExportergetInstance()CompletableResultCodeshutdown()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 Detail
-
INSTANCE
private static final LogRecordExporter INSTANCE
-
-
Method Detail
-
getInstance
static LogRecordExporter getInstance()
-
export
public CompletableResultCode export(java.util.Collection<LogRecordData> logs)
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
public CompletableResultCode 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
public CompletableResultCode 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
-
-