Skip to main content

check_value_limits

Function check_value_limits 

Source
pub fn check_value_limits(key: &str, value: &Value) -> Result<()>
Expand description

Validate one property value against the documented v5.0 type limits.

The receiver silently drops values that break these limits (keeping the rest of the event), so this check is most useful before submitting data: the debug consumer runs it in stringent mode via Data::check_limits.

Rules enforced:

key is used to build the error message.