Especially when retrieving metrics with large numbers of values for a tag, it's possible to get multiple rows (metrics) that have the same timestamp. When the timestamp is truncated to seconds and the data pivoted for resampling, we are losing rows with duplicate timestamps.
Adding code into TimelyMetric that adds microseconds onto duplicate timestamps will allow downstream code to work as intended while retaining what were previously seen as duplicate timestamps.
Especially when retrieving metrics with large numbers of values for a tag, it's possible to get multiple rows (metrics) that have the same timestamp. When the timestamp is truncated to seconds and the data pivoted for resampling, we are losing rows with duplicate timestamps.
Adding code into TimelyMetric that adds microseconds onto duplicate timestamps will allow downstream code to work as intended while retaining what were previously seen as duplicate timestamps.