Signature
Overview
redact_all_pii() applies all built-in PII redaction patterns to a value in one call. It’s equivalent to create_default_redactor()(value).
Use this for sanitizing individual values outside of trace context — for example, before logging or storing data.
For repeated use, prefer create_redactor() which builds the redactor once and reuses it.
Parameters
Any
required
The value to redact. Can be a string, dict, list, tuple, or nested combination.
Returns
The redacted value with the same structure as the input.Patterns Applied
Examples
See Also
- create_redactor() — Build a reusable redactor
- RedactorConfig — Custom configuration
- PII Redaction guide — Full guide

