macro_rules! trace_event {
($($arg:tt)*) => { ... };
}Expand description
Conditional event recording macro - compiles to no-op when profiling is disabled.
Use this for recording events within spans without creating new spans.
§Example
ⓘ
use edgefirst_client::trace_event;
fn download_file(url: &str) {
trace_event!("starting download", url = %url);
// ... download
trace_event!("download complete", bytes = 1024);
}