~/talk

"Demystifying Context Values"

Talkat Gopherpalooza 2019 · on Friday, 2019-11-08· [go, microservices]
slides:none on file

Shows concrete rules for using Go's context values: use them for HTTP header propagation and distributed tracing, not to hide API dependencies; implement small dedicated packages that expose contextual logging helpers, keep keys as an unexported key type, and centralize defaults and error handling. Benchmarks and examples show context layering costs are tiny but warn about loop-wrapping bugs, and give exact code patterns for reading, writing, and propagating request-scoped IDs and log fields across microservices.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Context Values
  3. 2:30HTTP Request Information
  4. 4:25Background
  5. 5:43Header Data
  6. 6:25Cognitive Load
  7. 7:29Dedicated Functions
  8. 8:32General API
  9. 9:58Logging
  10. 14:08Interacting with Context
  11. 16:00Performance Concerns
  12. 17:47Making Bugs
  13. 19:18Summary
~/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.