Fix: BusiestReadTag was logged before the first interval

This commit is contained in:
A.J. Beamon 2020-05-12 14:12:02 -07:00
parent da14e1eb04
commit 4f3f70e0c5
1 changed files with 8 additions and 7 deletions

View File

@ -499,13 +499,14 @@ public:
previousBusiestTag.reset();
}
// TODO: report in status
TraceEvent("BusiestReadTag", id)
.detail("Elapsed", elapsed)
.detail("Tag", printable(busiestTag))
.detail("TagCount", busiestTagCount)
.detail("TotalSampledCount", intervalTotalSampledCount)
.detail("Reported", previousBusiestTag.present());
if(intervalStart > 0) {
TraceEvent("BusiestReadTag", id)
.detail("Elapsed", elapsed)
.detail("Tag", printable(busiestTag))
.detail("TagCount", busiestTagCount)
.detail("TotalSampledCount", intervalTotalSampledCount)
.detail("Reported", previousBusiestTag.present())
}
intervalCounts.clear();
intervalTotalSampledCount = 0;