Expand description
Per-jig execution tracing.
Wires into #[jig] when the trace feature is enabled on the jigs
umbrella crate (or on jigs-macros directly). Each instrumented jig
records its name, depth, wall-clock duration and outcome into a
thread-local buffer that callers can drain with take.
Structs§
- Entry
- One recorded jig invocation.
Traits§
- Status
- Common interface used by tracing to inspect a jig’s outcome without
knowing whether the value is a
Request,Response, orBranch.
Functions§
- enter
- Record the start of a jig invocation. Returns an index used by
exitto close the same entry. Called by code generated from#[jig]. - exit
- Close the entry at
idxwith its measured duration and outcome. Called by code generated from#[jig]. - take
- Drain the current thread’s trace buffer and reset depth tracking. Call once per request after the pipeline finishes.