Save bootstrap trace events in a circular buffer (#16823)

This commit is contained in:
Krishnan Parthasarathi
2023-03-17 16:01:03 -07:00
committed by GitHub
parent 280442e533
commit 31fba6f434
5 changed files with 189 additions and 0 deletions

View File

@@ -352,6 +352,8 @@ func configRetriableErrors(err error) bool {
}
func bootstrapTrace(msg string) {
globalBootstrapTracer.Record(msg)
if globalTrace.NumSubscribers(madmin.TraceBootstrap) == 0 {
return
}