use tracing_calltree::CallTree;
use tracing_subscriber::prelude::*;
fn main() {
let calltree = CallTree::new();
tracing_subscriber::registry().with(calltree.layer()).init();
tracing::info_span!("request").in_scope(|| {
tracing::info_span!("parse").in_scope(|| {
std::thread::sleep(std::time::Duration::from_millis(5));
});
});
println!("{}", calltree.snapshot().display());
}