Crate bity_ic_canister_tracing_macros

Crate bity_ic_canister_tracing_macros 

Source
Expand description

Module for procedural macros that add tracing capabilities to canister functions.

This module provides macros that automatically add tracing instrumentation to functions, making it easier to debug and monitor canister behavior. It wraps functions with tracing capabilities while preserving their original functionality.

§Example

use bity_ic_canister_tracing_macros::trace;

#[trace]
async fn my_function(arg1: u64, arg2: String) -> Result<(), String> {
    // Function implementation
    Ok(())
}

Attribute Macros§

trace
A procedural macro attribute that adds tracing capabilities to a function.