The current way non-distribution metrics are being built conflicts with this condition in the consumer. This PR makes sure to only set the metric distribution_type_value if the metric is a distribution.
@samfadrigalan as discussed offline, the "if statement" can handle every type of metrics.
Since metrics generated by apollo are working fine. I think the problem is a data issue.
The current way non-distribution metrics are being built conflicts with this condition in the consumer. This PR makes sure to only set the metric distribution_type_value if the metric is a distribution.