Skip to main content

sanitize

Function sanitize 

Source
pub fn sanitize(value: &Value) -> Value
Expand description

Deep-clones value, replacing any object key matching a sensitive pattern with "[REDACTED]". Call this before logging any user- or API-controlled JSON payload (this crate’s tracing setup has no built-in path-based redaction the way pino’s redact option does).