OCT. 12-13 2023

BRUSSELS & ONLINE

Oct 11 2023, 10:00 - 16:00

You can't fix what you can't see: telemetry for Rust APIs

Your Rust application has finally been deployed to production! Nice! But is it working? This workshop will introduce you to a comprehensive toolkit to detect, troubleshoot and resolve issues in your Rust APIs.

All workshop participants will receive a free 3 month CLion license valid for personal use from our friends at JetBrains.

Target Audience

This workshop is designed for developers who are operating Rust services in production-like environments, or are preparing to do so.

Contents

  • Structured logging (tracing)

    An introduction to the tracing instrumentation library, covering both how to instrument your code (capturing fields, log levels, macros) and how to process the resulting telemetry data in your application (subscriber configuration, logging levels, log filtering).

  • Error handling

    We will cover Rust’s Error trait, with a focus on the information that can be retrieved and recorded in your logs; we will also spend some time on logging patterns (e.g. when should an error be logged?) and relevant libraries for error handling (anyhow/thiserror).

  • Panic handling

    You should always manage to capture details about what went wrong, even if it’s due to an uncaught panic rather than an error. We will review panic hooks and integrate them in our tracing setup.

  • Metrics, both for application and runtime (tokio-metrics)

    Structured logs are important, but they don’t tell the full story. We will look at how to capture metric data using the metrics library, as a tool for designing alarms as well troubleshooting faulty behaviour. We will spend some time on tokio-metrics and how to interpret the data it shows with respect to your tokio runtime usage.

Prerequisites

We will send a detailed list of instructions for preparation. This information will be provided closer to the workshop date.

About Luca Palmieri

Luca Palmieri builds technology products for a living, and has been doing so for a while. His current focus is on backend development, software architecture and the Rust programming language.

When he is not coding, you’ll find him baking cakes or rolling pasta sheets.

Luca Palmieri
Book Your Ticket

Workshops Venue

workshop venue picture

The EuroRust workshops will take place in the Comet Louise coworking space in the city center of Brussels. The venue is located at Pl. Stéphanie 20, 1050 Brussels.

Check on Map