Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets.
Test: statsd unit test passed. Change-Id: I3c76846da169b36c447c77db76b3deeda87e9e6e
This commit is contained in:
@@ -326,6 +326,7 @@ void GaugeMetricProducer::flushIfNeededLocked(const uint64_t& eventTimeNs) {
|
||||
}
|
||||
}
|
||||
|
||||
mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>();
|
||||
mCurrentSlicedBucket = std::make_shared<DimToGaugeFieldsMap>();
|
||||
|
||||
// Adjusts the bucket start time
|
||||
|
||||
Reference in New Issue
Block a user