~/talk

Modern observability for Python

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [observability]
links:none on file
slides:none on file

Argues that OpenTelemetry is the practical standard now, showing Python code that creates a TracerProvider, uses a batch span processor with a console exporter (background thread batches sends), and attaches structured attributes to spans. Recommends tracing as the primary signal, metrics for aggregated latency, and sampling (head vs tail) plus retention or offloading big payloads to S3 to control cost. Notes auto-instrumentation often uses monkey‑patching, adds about sub‑millisecond overhead per request, and mentions the commercial/open product Logfire as a ready receiver.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:10History of observability
  3. 3:17Standard library logging
  4. 8:53Introduction to tracing
  5. 11:21When to use tracing vs logging
  6. 12:02Introduction to metrics
  7. 14:53Distributed tracing explained
  8. 15:14OpenTelemetry overview
  9. 16:59Setting up OpenTelemetry
  10. 18:03Cost management in observability
  11. 19:48Observability platforms
  12. 20:32Q&A on performance overhead
  13. 21:15Q&A on resource usage
  14. 22:41Q&A on endpoint instrumentation
  15. 23:23Q&A on auto instrumentation
  16. 24:26Q&A on context managers
  17. 25:08Q&A on trace structuring
  18. 26:10Q&A on self-hosting
  19. 27:12Q&A on beginner setup
  20. 28:13Q&A on logging's future
~/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.