MCPcopy Create free account
hub / github.com/PostHog/duckgres / RecentErrors

Method RecentErrors

server/recent_errors.go:93–98  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls 1

snapshotMethod · 0.45