Skip to main content

record

Function record 

Source
pub async fn record(rec: &CoverageRecord)
Expand description

Best-effort coverage write: POST rec (single JSON record) to {index}/v1/coverage, HMAC-signed over the exact raw body bytes.

Returns () — deliberately not a Result — so it is UNMISTAKABLE that a coverage write can never fail the resolve that triggered it. Every failure path (no secret resolvable, serialization failure, transport error, non-2xx response) emits exactly one warn! and returns; a 2xx emits a debug!.