**Describe the bug** The client does not allow the passing of NaN into `append_metrics_by_id` due to it being disallowed by JSON. We should modify this so it transforms NaN into a string and the receiving endpoint recognizes it as NaN.