RecentErrors returns up to limit of this server's most recent redacted query errors, newest first. Used by the control-plane admin Errors page (fanned out across replicas). limit <= 0 returns all retained.
(limit int)
| 91 | // errors, newest first. Used by the control-plane admin Errors page (fanned out |
| 92 | // across replicas). limit <= 0 returns all retained. |
| 93 | func (s *Server) RecentErrors(limit int) []RecentError { |
| 94 | if s == nil { |
| 95 | return nil |
| 96 | } |
| 97 | return s.recentErrors.snapshot(limit) |
| 98 | } |