PyLadiesCon 2025

The Python You Didn’t Write: Understanding Logs, Metrics, and Monitoring for Better Production Code
2025年12月6日 , Main Stream
語言: English

Many Python developers write code that works beautifully until it lands in production and something breaks. Suddenly, the bug isn’t in the logic, it’s in what you didn’t see coming. Without proper logging, metrics, or monitoring, it’s hard to answer even basic questions like: “Is this function working as expected?”, “Why did this job fail?”, or “How many users are affected?”

This talk is for anyone who’s deployed (or wants to deploy) Python apps and has ever struggled to debug or monitor them after launch. I’ll introduce the concept of observability but without the buzzwords or complexity. Through real-life scenarios, I’ll explain how even a few lines of thoughtful logging and some basic metrics can transform one’s code from “it works on my machine” to “I can debug this at 2 AM.”

We’ll walk through examples of poor vs. effective logging, how metrics reveal patterns logs can’t, and how monitoring ties it all together. Whether one is building web apps, CLIs, or automation scripts, this talk will show how one can start writing more observable Python.



Why This Talk?

Most developers focus on writing code that works. But production environments are full of unknowns: bad data, service outages, weird edge cases. What helps a developer survive these moments isn’t just better code, It’s better visibility.

My talk addresses a knowledge gap many Python developers face: how to make their code observable, so they can understand, troubleshoot, and improve it, especially once it’s deployed.


Key Takeaways:

By the end of this talk, attendees will:
• Understand what observability means and why it matters.
• Know the difference between logs, metrics, and monitoring, and when to use each.
• See what good logging looks like (and what to avoid).
• Walk away with actionable ideas for improving visibility into their code (whether it’s a web app, script, or background worker).

Lois Bassey is a software engineer and infrastructure specialist who cares deeply about reliability, simplicity, and helping developers build things that don’t break in production. With experience across backend development and DevOps, she enjoys making infrastructure feel less intimidating, especially for those new to it.

She’s also the founder of Codevixens, an initiative that trains and supports people, especially women looking to start or grow tech careers. Her work focuses on bridging knowledge gaps and making technical growth more accessible.

Outside of work, she mentors aspiring engineers and builds personal learning experiences around DevOps, cloud, and automation.