Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Instrumentation Nightmares - A Review of Our Toughest Cases

PyCon US via YouTube

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

Reviews

Start your review of Instrumentation Nightmares - A Review of Our Toughest Cases

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.