Redact the log context: every top-level string value (a url, an endpoint, a path) passes through the same URL redaction as the message. Returns undefined for a missing or empty context so a logger never receives {}.
url
endpoint
undefined
{}
Redact the log context: every top-level string value (a
url, anendpoint, a path) passes through the same URL redaction as the message. Returnsundefinedfor a missing or empty context so a logger never receives{}.