Class SimpleLogRecordProcessor

java.lang.Object
io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
All Implemented Interfaces:
LogRecordProcessor, Closeable, AutoCloseable

public final class SimpleLogRecordProcessor extends Object implements LogRecordProcessor
An implementation of the LogRecordProcessor that passes LogRecordData directly to the configured exporter.

This processor will cause all logs to be exported directly as they finish, meaning each export request will have a single log. Most backends will not perform well with a single log per request so unless you know what you're doing, strongly consider using BatchLogRecordProcessor instead, including in special environments such as serverless runtimes. SimpleLogRecordProcessor is generally meant to for testing only.

Since:
1.27.0