trace._usage_target_of

(internal) A span as a target for `_record_usage`, like `_usage_target`: the span an HTTP request ran in, so the tokens its reply reports belong to that request. 0 for a span of another runtime.

Reference version

Signature

function trace._usage_target_of(span: trace.SpanId) -> int throws never

(internal) A span as a target for _record_usage, like _usage_target: the span an HTTP request ran in, so the tokens its reply reports belong to that request. 0 for a span of another runtime.

Source:<builtin>/trace/trace.bamlbytes 5221–5303