Skip to main content

trace_device

Macro trace_device 

Source
macro_rules! trace_device {
    ($device_id:expr, $operation:expr) => { ... };
    ($device_id:expr, $operation:expr, $($field:tt)*) => { ... };
}
Expand description

Create a span for tracing device operations.

§Example

use mabi_core::trace_device;

async fn device_tick(device_id: &str) {
    let _span = trace_device!(device_id, "tick");
    // ... device processing
}