~/talk

Dynamic Go Instrumentation for Production Environments

Talkat GopherCon Europe 2021 · 2021-05-26..05-28· [go, security, observability]
links:none on file
slides:none on file

A pure-Go compiler proxy is built that uses go tool exec to intercept each package compile, rewrite source with inserted prologue/epilogue hooks, emit a generated hook table, and forward to the real compiler and linker. Runtime API finds symbols by function name, atomically attaches callbacks that can abort calls or mutate return values. Demo instruments println, the build reports 123 hooks (and the main binary shows ~1,000+ hooks) and the demo output matches expectations.

AI-written summary · about

  1. 0:00Intro
  2. 1:20Application Security
  3. 3:12Dynamic Instrumentation
  4. 7:10Compiler Instrumentation
  5. 10:25Source Code Instrumentation
  6. 15:01Dynamic Go Instrumentation
  7. 17:16Demo
~/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.