Type Alias Magnitude

Source
pub type Magnitude = i64;
Expand description

Any value in this range is a valid magnitude of an event.

We use integers because they are the fastest data type - floating point math is too slow for high-frequency observations.

If you are measuring fractional data, scale it up to be representable as integers. For example, instead of counting seconds, count milliseconds or nanoseconds.