Skip to contentSlop Block

no-tracing-macro-imports

Warning

Call tracing macros by path, as in tracing::debug!(...), instead of importing them.

use tracing::debug;Call tracing macros by path
use tracing::{info, warn};Call tracing macros by path
use tracing::instrument;Call tracing macros by path
// ast-grep-ignore: no-tracing-macro-imports-rust

How to fix

Write tracing::debug!(...) and leave the macro out of the imports.