pub fn mask_source_error(error: &str, sensitive: bool) -> Cow<'_, str>Expand description
Mask a source error before it reaches logs or output. Source plugins can transform or truncate a request in their diagnostics, so exact replacement is not sufficient for a secret-bearing request. In that case the opaque detail is omitted instead.