Fix roll trace event issue

Description

Testing
This commit is contained in:
Chang Liu 2021-09-21 00:06:30 +00:00 committed by A.J. Beamon
parent af03d18cc1
commit abc828f8ef
1 changed files with 1 additions and 1 deletions

View File

@ -1354,7 +1354,7 @@ void updateRate(RatekeeperData* self, RatekeeperLimits* limits) {
limits->reasonMetric = limitReason; limits->reasonMetric = limitReason;
if (deterministicRandom()->random01() < 0.1) { if (deterministicRandom()->random01() < 0.1) {
std::string name = limits->rkUpdateEventCacheHolder.getPtr()->trackingKey; const std::string& name = limits->rkUpdateEventCacheHolder.getPtr()->trackingKey;
TraceEvent(name.c_str(), self->id) TraceEvent(name.c_str(), self->id)
.detail("TPSLimit", limits->tpsLimit) .detail("TPSLimit", limits->tpsLimit)
.detail("Reason", limitReason) .detail("Reason", limitReason)