Skip to main content

instrument

Attribute Macro instrument 

Source
#[instrument]
Expand description

#[obs::instrument] — wraps a function body in an obs::scope! and emits one ObsFnExecuted event on exit (default) or two (ObsFnEntered + ObsFnExecuted) when enter = true.

Spec 13 § 5.