Visualizing Async Rust Execution Trees with await-tree

2025-04-02
Visualizing Async Rust Execution Trees with await-tree

await-tree is a Rust library for visualizing the execution tree of asynchronous tasks. It traces the execution flow of asynchronous tasks and presents the result as a tree structure, facilitating debugging and analysis of complex asynchronous code. Compared to similar tools like async-backtrace, await-tree supports runtime dynamic spans, more complex asynchronous control flows, and offers higher stability and efficiency. It has been used in production deployment in RisingWave, a distributed streaming database.

Development