Skip to main content

Module http

Module http 

Source
Expand description

Thin reqwest wrapper around the studio API.

Every call goes through ApiClient::check, which:

  • emits a structured tracing event on success (debug) and failure (warn) so operators can see what the worker is talking to without having to enable wire-level logging in reqwest, and
  • turns non-2xx responses into an anyhow error tagged with the operation name so the existing log shipper messages stay legible.

Structsยง

ApiClient