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 LogRecordExporter
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoopLogRecordExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableResultCode
export(java.util.Collection<LogRecordData> logs)
Exports the collections of givenLogRecordData
.CompletableResultCode
flush()
Exports the collection ofLogRecordData
that have not yet been exported.(package private) static LogRecordExporter
getInstance()
CompletableResultCode
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 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: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
public CompletableResultCode 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
public CompletableResultCode 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
-
-