trace._usage_target

(internal) The span or thread that model usage recorded later belongs to: this invocation's innermost span, else its thread. 0 when tracing is off. Model clients capture it when a call starts.

Reference version

Signature

function trace._usage_target() -> int throws never

(internal) The span or thread that model usage recorded later belongs to: this invocation's innermost span, else its thread. 0 when tracing is off. Model clients capture it when a call starts.

Source:<builtin>/trace/trace.bamlbytes 3687–3754