Check that a value is safe to use as a metric.
This means the number must be a number, be finite, and not NaN. NaN and Infinity serialize to null, which produces an invalid metric payload.
The value to check.
True if the value is safe to use as a metric, false otherwise.
Check that a value is safe to use as a metric.
This means the number must be a number, be finite, and not NaN. NaN and Infinity serialize to null, which produces an invalid metric payload.