Skip to main content

MAX_LOGGED_SQL_LEN

Constant MAX_LOGGED_SQL_LEN 

Source
const MAX_LOGGED_SQL_LEN: usize = _; // 8_192usize
Expand description

The maximum length in bytes of SQL text included in a log line.

Loki rejects a log entry larger than 256 KiB and drops it whole. A span’s fields are repeated in every event logged inside the span, twice when it is the innermost span (the JSON format writes both span and spans), so one statement can appear several times in an entry.