pub fn cap_payload(payload: Value) -> ValueExpand 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.