macro_rules! timed_operation { ($name:expr, $($key:ident = $value:expr),*, $block:block) => { ... }; }
Macro for structured logging with performance tracking
use thread_flow::monitoring::logging::timed_operation; timed_operation!("parse_file", file = "src/main.rs", { // Operation code here parse_rust_file(file)?; }); // Automatically logs duration when complete