~/talk

Scaling Distributed Tracing on Android With a Kotlin IR Compiler Plugin

Talkat droidCon USA 2026 · on Thursday, 2026-07-16· at 10:00· W222 B· [kotlin, distributed-systems]
links:none on file
slides:none on file

Builds a Kotlin IR compiler plugin that rewrites function bodies at compile time to wrap methods in structured trace spans and automatically handle lifecycle, sampling and exporters to Sentry, Perfetto, Firebase Performance or internal warehouses. Instrumentation requires one annotation on a method or class; suspend functions work without extra handling. The implementation is compact—four files and ~300 lines—adds a small build-time cost, runs in production across golden flows, and cuts root-cause time from days to hours by surfacing the exact slow span.

AI-written summary · about

  1. 0:00Distributed tracing on Android
  2. 7:24Cost of manual span instrumentation
  3. 10:56Auto-instrumenting Kotlin with compiler plugins
  4. 16:18How compiler rewrites code
  5. 20:54Testing and deploying tracing plugin
  6. 25:53Performance impact and production use
  7. 30:06Other compiler plugin use cases
  8. 33:13Q&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.