Skip to main content

trace_request

Macro trace_request 

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

Create a span for tracing protocol requests.

This macro creates a structured span with standard fields for request tracing.

§Example

use mabi_core::trace_request;

async fn handle_request() {
    let _span = trace_request!("modbus", "read_registers");
    // ... request handling
}