Skip to main content

try_bounded_metadata_json

Function try_bounded_metadata_json 

Source
pub fn try_bounded_metadata_json(value: Value) -> Option<String>
Expand description

Like bounded_metadata_json, but refuses to truncate: returns None when the sanitized encoding exceeds MAX_METADATA_JSON_BYTES, so callers whose metadata carries load-bearing keys (e.g. the extracted agent_docker identity) can back out instead of losing them.