Skip to main content

cap_payload

Function cap_payload 

Source
pub fn cap_payload(payload: Value) -> Value
Expand description

Replace an oversized payload with a truncation marker carrying the original size and a head excerpt, so a runaway writer cannot bloat the trace store. Values at or under TRACE_PAYLOAD_CAP_BYTES pass through unchanged.