Skip to main content

enabled

Macro enabled 

Source
enabled!() { /* proc-macro */ }
Expand description

Checks subscriber interest at a level using the lexically visible tracing_target! target.

Accepts a level followed by optional field names, just like tracing::enabled!. A leading target: overrides the scope and can be used without one. Otherwise, a tracing_target! declaration must be in lexical scope. This is an interest hint, not a guarantee that a particular span or event will be recorded.