spandoc 0.2.2

Procedural macro attribute for converting doc comments into tracing spans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use spandoc::spandoc;
use tracing::info;

#[spandoc]
fn main() {
    std::env::set_var("RUST_LOG", "info");
    tracing_subscriber::fmt::init();
    let local = 4;

    /// SPANDOC: Emit a tracing info event {?local}
    info!("event 1");

    info!("event 2");
}