Merge pull request #8007 from jzhou77/main

Suppress AllLocalAlternativesFailed events
This commit is contained in:
Jingyu Zhou 2022-08-26 16:41:10 -07:00 committed by GitHub
commit 99ee062750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -488,6 +488,7 @@ Future<REPLY_TYPE(Request)> loadBalance(
break;
} else if (badServers == alternatives->countBest() && i == badServers) {
TraceEvent("AllLocalAlternativesFailed")
.suppressFor(1.0)
.detail("Alternatives", alternatives->description())
.detail("Total", alternatives->size())
.detail("Best", alternatives->countBest());