Observing Tokio

Async Rust can be hard. Stack traces are meaningless, the debugger changes everything, and sometimes your program just hangs forever. But there are many tools that can help you look inside! We’ll explore how to observe the inner workings of Tokio using Tracing, Metrics, Task Dumps, and Console.

Abstract

Asynchronous Rust programming can be a challenging endeavor. Stack traces can be opaque and confusing, the debugger affects everything about how your program is running, and sometimes that program just hangs. In this workshop, we will explore a range of tools that can help you illuminate the inner workings of Tokio, the most popular async runtime for Rust.

Join us as we dive into the Tracing crate, Tokio Metrics, Task Dumps, and Tokio Console. We'll show you how to use these powerful tools to get real-time insights into your async Rust programs and identify issues during development and in production.

You'll learn how to use Tracing to get a deep understanding of what's happening inside your async code, allowing you to trace the lifecycle of each task.

We'll explore the Tokio Metrics crate and demonstrate how to use it to monitor async applications in production.

With Task Dumps, you can analyze a detailed snapshot of the complete async runtime.

Finally, Tokio Console provides a way to observe and troubleshoot running async Rust code interactively.

This talk is perfect for anyone interested in improving their async Rust programming skills, whether you're a beginner or an experienced developer. You'll come away with practical knowledge of these essential tools and the confidence to use them in your everyday work.

Join us for Observing Tokio and see how you can shine a light into the dark recesses of your async program.

Slides

Video

RustLab is a conference made by Develer.
Develer is a company based in Campi Bisenzio, near Florence. Our motto is : "Technology to give life to your products". We produce hardware and software to create exceptional products and to improve industrial processes and people's well being.
In Develer we have passion for the new technologies and we offer our clients effective solutions that are also efficient, simple and safe for the end users. We also believe in a friendly and welcoming environment where anybody can give their contribution. This passion and this vision are what we've been driven to organize our conference "made by developers for developers".

Subscribe to our newsletter

We hate spam just as much as you do, which is why we promise to only send you relevant communications. We respect your privacy and will never share your information with third parties.
©2024 RustLab | The international conference on Rust in Florence-Design & devCantiere Creativo-Made withDatoCMS