This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opentsdb_batch: try to convert all strings to numbers instead of chec…
…king for a type
- Loading branch information
7e9c7dd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafrombrc is it ok to do this or constantly calling
tonumber()
would be slow/unstable?I've hit an issue when metrics were emitted with incorrect type (string instead of number).
I guess many people will have the same problem which is not so easy to spot so I've added this workaround here.
Any other suggestions on how to handle this here?