inspect

Attribute Macro inspect 

Source
#[inspect]
Expand description

Attribute macro for inspecting specific code blocks

§Example

#[async_inspect::inspect]
async fn process_data(data: Vec<u8>) -> Result<(), Error> {
    // This entire block will be tracked
    let parsed = parse(data)?;
    let validated = validate(parsed).await?;
    Ok(validated)
}