~/talk

Instrumentation Nightmares: A review of our toughest cases

Talkat PyCon US 2023 · 2023-04-19..04-27· [python, observability]
name:Hannah
links:none on file
name:Lalleh
links:none on file
name:Timothy
links:none on file
name:Uma
links:none on file
slides:none on file

Covers techniques for instrumenting Python by hooking the import system and using tools like wrapt and proxies, with attention to async and Python web-server interfaces. Reviews design patterns that help or hinder instrumentation and walks through challenging, real-world cases from popular Python libraries to show how instrumentation is implemented and made easier.

AI-written summary · about

  1. 0:00Intro
  2. 2:36Metrics Events Logs Traces (MELT)
  3. 5:29Context Managers
  4. 5:57Attribute Mapping
  5. 6:57Wrapping class methods
  6. 9:09Binding Parameters
  7. 9:57Hooking into the Python Import System
  8. 10:34Registering Import Hooks
  9. 14:40Example Module
  10. 15:50Import Ordering
  11. 18:54WSGI Transaction Naming
  12. 20:48Coroutines in Async Frameworks
  13. 22:07Starlette Error Instrumentation
  14. 23:49Deprecated Imports
  15. 24:33Starlette Background Tasks
  16. 29:19Simple Test
  17. 30:10In Summary
  18. 31:50Programming the Deepest Field Path Logic
  19. 33:25Double Reporting Exceptions: The Problem
  20. 34:17Double Reporting Exceptions: The Solution
  21. 36:46Adding Signals
  22. 37:04The Implementation of TouchUp class
  23. 38:59Conclusion
~/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.