~/talk

Contextual Logging for Modern Go Applications

Talkat GopherCon India 2024 · 2024-11-11..11-13· [observability, go]
links:none on file
slides:none on file

Argues that embedding structured context into Go logs makes live debugging across microservices reliable, demonstrating request ID propagation that actually travels through goroutines and simplifies trace searches. Shows code patterns: pass context as first parameter, use typed context keys, and prefer middleware that implicitly injects context into slog/logrus/zap/zerolog pipelines (zap for throughput, logrus for simplicity, zerolog for chained context). Implements masking of PII like mask PAN numbers, limits to ~10 canonical context keys, and integrates CI static checks and DLP for redaction.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Why contextual logging matters
  3. 3:51How to implement contextual logging
  4. 6:23Best practices for contextual logging
  5. 9:14Logging libraries in Go
  6. 11:23Implicit vs explicit logging
  7. 13:32Evolution of contextual logging
  8. 14:17Securing contextual logs
  9. 15:51Proactive security measures
  10. 18:00Reactive security approaches
  11. 19:21Integrating DLP solutions
  12. 20:25Conclusion and Q&A
~/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.