Type Definition stakker::LogID [−][src]
type LogID = u64;
Logging span identifier
A span is a period of time. It is marked by a LogLevel::Open
logging event, any number of normal logging events and then a
LogLevel::Close
event, all associated with the same LogID
.
It corresponds to the lifetime of an actor, or a call, or whatever
other process is being described.
The LogID
numbers are allocated sequentially from one, with
zero reserved for “none” or “missing”. If 2^64 values are
allocated, they wrap around to one again. If this would cause
problems downstream, then the logger should detect the situation
and warn or terminate the process.