Class BatchSpanProcessor

java.lang.Object
io.opentelemetry.sdk.trace.export.BatchSpanProcessor
All Implemented Interfaces:
SpanProcessor, Closeable, AutoCloseable

public final class BatchSpanProcessor extends Object implements SpanProcessor
Implementation of the SpanProcessor that batches spans exported by the SDK then pushes them to the exporter pipeline.

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