Optionaldropdrop_newest (default) rejects new records while the queue is full, drop_oldest evicts the
oldest queued record, block never drops for a full queue: the queue may grow past
maxQueueSize, an export starts at once, and BatchProcessor.addAsync waits for capacity
(JavaScript cannot block a synchronous call).
OptionalexportDeadline of one export call; also the default timeout of flush/shutdown. Default 30000 ms.
OptionalflushInterval of the background export. Default 1000 ms.
OptionalgzipAsk the exporter to gzip the payload. Default true.
OptionalmaxUTF-8 JSON bytes per export call (a batch always holds at least one record). Default 1 MiB.
OptionalmaxRecords per export call. Default 512.
OptionalmaxExport attempts repeated after a retryable failure (error.retryable). Default 2.
OptionalmaxRecords kept in memory before the drop policy applies. Default 2048.
OptionalonCalled with records that will never be exported. Exceptions are ignored.
OptionalonCalled when an export fails or the service rejects records. Exceptions are ignored.
OptionalretryBase delay before a repeated export, doubled per attempt. Default 200 ms.
Options of BatchProcessor (SPEC §4).