Hi devs, Since IMetric#getValueAndReset doesn't restrict return type, it gives us flexibility but metrics consumer should parse the value without context (having just some assumptions).
I've look into some open source metrics consumers, and many of them support Number, Map<String, Number/String>, and one of them supports Nested Map. For the case of Map its key is appended to metric key and value is converted to 'double'. I think it would be enough, but I'm not sure we can rely on all metrics consumers to handle properly, too. I feel if we can recommend proper types of DataPoint value for storing metrics to time-series DB via metrics consumer it would be great. It can be used to protocol between IMetric users and metrics consumer developers. What do you think? Thanks, Jungtaek Lim (HeartSaVioR) ps. I'm not heavy user of time-series DBs (I researched some, but they don't document type/size of value clearly) so if someone could give the information of supporting type/size of value of time-series DBs it should be great for me. Or we can just assume number as 'double' as above and go forward.
