Skip to main content

Module utils

Module utils 

Source
Expand description

Wire-format data model and validation helpers. Time and validation helpers shared by the analytics facade and consumers.

All timestamps are produced with the jiff crate (the successor of chrono, which is deliberately not used anywhere in this workspace).

Modules§

limits
Documented property limits from the TE v5.0 data rules.

Functions§

check_value_limits
Validate one property value against the documented v5.0 type limits.
is_documented_time_format
Whether value matches the #time formats documented in the data rules: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd HH:mm:ss.SSS.
is_valid_key
Check that an event name or property key matches ^[a-zA-Z#][A-Za-z0-9_]{0,49}$ — a 1..=50 character identifier starting with a letter or #.
parse_time
Rewrite RFC 3339 timestamps inside a serialized JSON payload to "yyyy-MM-dd HH:mm:ss.SSS", mirroring the Go SDK’s parseTime.