Libraries
    Preparing search index...

    Interface BatchingSinkOptions

    Configuration for the batching sink wrapper.

    interface BatchingSinkOptions {
        batchSize?: number;
        circuitBreakerThreshold?: number;
        emit: (batch: LogEvent[]) => Promise<void>;
        flushInterval?: number;
        maxQueueSize?: number;
        maxRetries?: number;
        retryDelay?: number;
    }
    Index

    Properties

    batchSize?: number

    Flush after this many events.

    100
    
    circuitBreakerThreshold?: number

    Consecutive failures before circuit breaker opens.

    3
    
    emit: (batch: LogEvent[]) => Promise<void>

    The emit function that writes a batch to the target.

    flushInterval?: number

    Flush after this many milliseconds of inactivity.

    2000
    
    maxQueueSize?: number

    Maximum buffered events before dropping.

    50000
    
    maxRetries?: number

    Maximum retry attempts for failed flushes.

    5
    
    retryDelay?: number

    Initial retry delay in ms (exponential backoff).

    1000