~/talk

Squash Production Defects Quickly - The Power of Structured Logging in Rails

Talkat EuRuKo 2024 · 2024-09-11..09-13· [ruby-on-rails, observability]
slides:none on file

Friday on-call incident where password reset emails delay because analytics jobs queue behind a scraper hitting profile show is diagnosed in five minutes by adding structured logging with Rails 8, using semantic_logger, Faraday middleware for API requests, and AppSignal output; logs follow OpenTelemetry semantic names and show job class + duration so the culprit IP is blocked in Cloudflare and queue latency drops. Follow a five-step SOS cycle (question, instrument, deploy, query, improve). Outcome: 98% downtime reduction, 83% fewer 500s, bugs fixed ~20× faster.

AI-written summary · about

  1. 0:00Structured logging in Rails
  2. 3:04Production visibility issues
  3. 4:31SOS observability process
  4. 7:04Choosing log data
  5. 8:10Structured vs plain text logs
  6. 10:20Logging library selection
  7. 11:41OpenTelemetry standards
  8. 13:27Adding log attributes
  9. 14:32API request logging
  10. 14:52Sending logs to tools
  11. 15:36Log analysis with graphs
  12. 16:39Improving observability
  13. 17:21Observability culture
  14. 17:43Resolving production bug
  15. 20:29Fix impact measurement
  16. 20:50Observability superpower
  17. 21:12Unexpected logging benefits
  18. 21:5718-month results
  19. 22:19Resources and closing
~/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.