mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
Save bootstrap trace events in a circular buffer (#16823)
This commit is contained in:
1 parent
280442e533
commit
31fba6f434
5 files changed
+189
No files matched your search
@@ -977,6 +977,12 @@ func (s *peerRESTServer) TraceHandler(w http.ResponseWriter, r *http.Request) {
|
||||
s.writeErrorResponse(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
// Publish bootstrap events that have already occurred before client could subscribe.
|
||||
if traceOpts.TraceTypes().Contains(madmin.TraceBootstrap) {
|
||||
go globalBootstrapTracer.Publish(r.Context(), globalTrace)
|
||||
}
|
||||
|
||||
keepAliveTicker := time.NewTicker(500 * time.Millisecond)
|
||||
defer keepAliveTicker.Stop()
|
||||
|
||||
|
||||
Reference in new issue
Block a user