Skip to main content

Crate jigs_trace

Crate jigs_trace 

Source
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, or Branch.

Functions§

enter
Record the start of a jig invocation. Returns an index used by exit to close the same entry. Called by code generated from #[jig].
exit
Close the entry at idx with 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.