ai.wire.request_span

A span for one HTTP request to a model provider: the tokens its reply reports are recorded against it, so every call has its own row and cost. It captures nothing, since a request can carry credentials.

Reference version

Signature

function ai.wire.request_span() -> trace.ReservedSpan throws never

A span for one HTTP request to a model provider: the tokens its reply reports are recorded against it, so every call has its own row and cost. It captures nothing, since a request can carry credentials.

Source:<builtin>/ai/ns_wire/wire.bamlbytes 6823–6944