Skip to main content

MAX_PAYLOAD_BYTES

Constant MAX_PAYLOAD_BYTES 

Source
pub const MAX_PAYLOAD_BYTES: usize = 1_048_576;
Expand description

Maximum allowed size (in bytes) for the JSON data field of a single event.

Events exceeding this threshold are flagged with ValidationErrorKind::OversizedPayload. This prevents denial-of-service through excessively large payloads in the event log.