~/talk

Automatically Instrument Your Go Source Code with Orchestrion

Talkat GopherCon 2023 · 2023-09-26..09-29· [observability, go]
slides:none on file

Datadog’s Orchestrion automatically inserts and removes OpenTelemetry or console tracing into Go source by parsing with go/ast & dst, matching functions, HTTP handlers and clients, and injecting comment markers like DD span/ignore comments plus start/end wrappers. It runs either as a source rewrite (commitable edits) or invisibly via -toolexec preprocessing that writes instrumented files to a temp dir, uses an ldflag package variable to choose backend, requires context as first param for wrapped functions, and the demo shows roundtrip add/remove working.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Go's non-magical nature
  3. 2:48Telemetry and tracing
  4. 6:12Automatic instrumentation
  5. 8:29The challenge of Go magic
  6. 10:38Introducing orchestrion
  7. 12:06Orchestrion demo
  8. 13:42Abstract Syntax Trees
  9. 18:21Implementing instrumentation
  10. 26:56Handling HTTP and cleanup
  11. 28:54Configuring tracing targets
  12. 30:55Compile-time magic
  13. 35:34Automating library support
  14. 39:32Conclusion and safe magic
~/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.