Class BatchLogProcessor

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

public final class BatchLogProcessor extends Object implements LogProcessor
Implementation of the LogProcessor that batches logs exported by the SDK then pushes them to the exporter pipeline.

All logs reported by the SDK implementation are first added to a synchronized queue (with a maxQueueSize maximum size, if queue is full logs are dropped). Logs are exported either when there are maxExportBatchSize pending logs or scheduleDelayNanos has passed since the last export finished.