~/talk

OpenResty, My Bestie: Tracing NGINX With Lua

Talkat Monitorama PDX 2023 · 2023-06-26..06-28· [observability]
links:none on file
slides:none on file

Shopify traces OpenResty proxies with embedded Lua using OpenTelemetry, instrumenting ingress NGINX to extract/inject context and run a per-worker batch span processor inside each worker so spans buffer and export without DOSing the host. Key wins: visibility across proxies for peaks of 75.98 million requests per minute, deferred sampling to let the app decide, moving expensive work to the log phase, and a 92x faster RNG for span IDs; the implementation runs in production and functions at scale.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:47Tracing proxy with OpenTelemetry
  3. 3:35Choosing OpenTelemetry over Zipkin
  4. 5:05OpenTelemetry C++ vs OpenResty
  5. 6:29What is OpenResty
  6. 7:30Ingress NGINX with OpenResty
  7. 8:12Naive tracing implementation
  8. 11:03Productionizing at scale
  9. 13:12NGINX and OpenResty process models
  10. 16:26Demo setup and execution
  11. 18:36Live demo walkthrough
  12. 21:11Resiliency and performance tweaks
  13. 23:18Deferred sampling technique
  14. 25:24Challenges and lessons learned
  15. 26:06Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.