Instrumentation Nightmares - A Review of Our Toughest Cases
Offered By: PyCon US via YouTube
Course Description
Overview
Explore the intricacies of code instrumentation in this 40-minute PyCon US talk. Dive into the Python import system and discover useful design patterns for instrumenting code. Examine real-world examples and challenging instrumentation cases from popular Python libraries. Learn about proxies, wrapt, async programming, and web server specifications. Gain insights into making your code instrumentation-friendly and understand the design patterns that facilitate or complicate the process. Follow the journey through various topics including MELT (Metrics, Events, Logs, Traces), context managers, attribute mapping, class method wrapping, import hooks, WSGI transaction naming, coroutines in async frameworks, and more. Uncover solutions to common instrumentation problems and leave with a deeper understanding of how instrumentation works to enhance developer productivity.
Syllabus
Intro
Metrics Events Logs Traces (MELT)
Context Managers
Attribute Mapping
Wrapping class methods
Binding Parameters
Hooking into the Python Import System
Registering Import Hooks
Example Module
Import Ordering
WSGI Transaction Naming
Coroutines in Async Frameworks
Starlette Error Instrumentation
Deprecated Imports
Starlette Background Tasks
Simple Test
In Summary
Programming the Deepest Field Path Logic
Double Reporting Exceptions: The Problem
Double Reporting Exceptions: The Solution
Adding Signals
The Implementation of TouchUp class
Conclusion
Taught by
PyCon US
Related Courses
Artificial Intelligence for RoboticsStanford University via Udacity Intro to Computer Science
University of Virginia via Udacity Design of Computer Programs
Stanford University via Udacity Web Development
Udacity Programming Languages
University of Virginia via Udacity