trace-redact
Walk a serde_json::Value (agent trace, span attributes) and redact
sensitive fields in place. Key-name match (api_key, authorization,
…) plus value-pattern match (API keys, bearer tokens, emails, SSNs).
use redact;
use json;
let mut v = json!;
redact;
MIT or Apache-2.0.