Interface configuration for a buffer.

interface BatchLogRecordProcessorBrowserConfig {
    disableAutoFlushOnDocumentHide?: boolean;
    exportTimeoutMillis?: number;
    maxExportBatchSize?: number;
    maxQueueSize?: number;
    scheduledDelayMillis?: number;
}

Hierarchy (View Summary)

Properties

disableAutoFlushOnDocumentHide?: boolean

Disable flush when a user navigates to a new page, closes the tab or the browser, or, on mobile, switches to a different app. Auto flush is enabled by default.

exportTimeoutMillis?: number

How long the export can run before it is cancelled. The default value is 30000ms

maxExportBatchSize?: number

The maximum batch size of every export. It must be smaller or equal to maxQueueSize. The default value is 512.

maxQueueSize?: number

The maximum queue size. After the size is reached log records are dropped. The default value is 2048.

scheduledDelayMillis?: number

The delay interval in milliseconds between two consecutive exports. The default value is 5000ms.