Skip to main content

record_http_with

Function record_http_with 

Source
pub fn record_http_with(
    service: &str,
    method: &str,
    url: &str,
    started: Instant,
    status: Option<u16>,
    error: Option<&str>,
    extra: HttpExtra,
)
Expand description

Appends one kind: "http" record with extra, non-secret fields.

Headers and bodies are dropped unless their opt-in env var is set, headers are always redacted, and URL query/fragment values under secret-looking keys are replaced with REDACTED (redact_url) — so no secret can be written here under any caller.