The tracing crate models program execution with two primitives:

  • spans: represent a period of time in which a program executes in a particular context.
  • events: a single point in time (like a log line) but occurring within a span

Subscribers consume this data (tracing-subscriber is the standard implementation).

See also

References