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, and headers are always redacted — so no secret can be written here under any caller.