pub const MAX_BATCH_SIZE: usize = 1_048_576;
Expand description

The maximum batch size is 1,048,576 bytes, and this size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.