Closed panzi closed 2 years ago
Hi @panzi Yes, could be useful, for some applications, theoretically - but not sure if it's quite needed in practice. But thanks for suggestion!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
it would be nice if the protocol would allow to send numbers encoded as hex-floats. All needed would be to change this line:
https://github.com/graphite-project/carbon/blob/9fad18df5731271aab6f5c81d32eddcecdc1a695/lib/carbon/protocols.py#L197
To this:
A metric line in the plain text protocol would then be e.g.:
Why? Because hex-floats enable exact transfer of floating-point numbers. Decimal doesn't exactly map to the in memory representation of IEEE doubles. But yeah, good float formatters/parsers add enough places to get the exact value across, and it isn't really a problem in practice. Just a nice to have, I think.