Redaction

constructor(keepQueryParams: Set<String> = emptySet(), extraSensitiveQueryParams: Set<String> = emptySet(), secrets: List<String> = emptyList(), placeholder: String = DEFAULT_PLACEHOLDER)(source)

Parameters

keepQueryParams

query names that are never redacted even when their tokens look sensitive (for example sort_key); compared ASCII case-insensitively.

extraSensitiveQueryParams

query names redacted in addition to the token rule; compared ASCII case-insensitively.

secrets

exact values to replace wherever they appear; each at least MIN_SECRET_LENGTH characters and well-formed Unicode.

placeholder

the replacement text; DEFAULT_PLACEHOLDER by default.