madsim adds two (different) ids to tracing events:
fn main(){
tracing::subscriber::set_global_default(tracing_subscriber::fmt()
.compact().without_time().with_target(false)
.finish()).unwrap();
let rt = madsim::runtime::Runtime::new();
let node=rt.create_node().build().spawn(async move{
info!("hello!");
});
rt.block_on(node).unwrap();
}
outputs:
INFO node:task: hello! id=1 id=0
madsim adds two (different) ids to tracing events:
outputs: