~/talk

Errors: to Log, or Not to Log?

Talkat GopherCon 2022 · 2022-09-26..09-28· [observability]
slides:none on file

Proposes letting errors decide whether to be logged by adding a Loggable interface that middleware queries, and introducing an ObservedError wrapper plus a metrics counter for frequent, expected failures like timeouts. Demonstrates moving error assertions into the component that produces them (HTTP client/middleware), incrementing counters instead of logging, wrapping errors to mark them observed, returning them unchanged, and shows this reduces noisy logs so critical errors stand out.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Errors to Log
  3. 3:15Not to Log
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.