Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

tracing span

A named stretch of work, like one request, that log events are attached to.

In the tracing crate a span records a unit of work with fields and duration; events inside it inherit its context, so logs can be grouped per request.

Examples

  • Inside info_span!("booking", id = 7), info!("seats held") prints INFO booking{id=7}: seats held: the event inherits the span's fields.

Read the full section →