An implementation of the LogRecordProcessor interface that exports each LogRecord as it is emitted.

NOTE: This LogRecordProcessor exports every LogRecord individually instead of batching them together, which can cause significant performance overhead with most exporters. For production use, please consider using the BatchLogRecordProcessor instead.

Implements

Constructors

Methods

  • Forces to export all finished log records

    Returns Promise<void>

  • Called when a LogRecord is emit

    Parameters

    Returns void

  • Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.

    Returns Promise<void>