General 568 installs

python-observability

by wshobson/agents

Python observability patterns including structured logging, metrics, and distributed tracing. Use when adding logging, implementing metrics collection, setting…

Skill content

Python Observability

Instrument Python applications with structured logs, metrics, and traces. When something breaks in production, you need to answer "what, where, and why" without deploying new code.

When to Use This Skill

- Adding structured logging to applications

- Implementing metrics collection with Prometheus

- Setting up distributed tracing across services

- Propagating correlation IDs through request chains

- Debugging production issues

- Building observability dashboards

Core Concepts

1. Structured Logging

Emit logs as JSON with consistent fields for production environments. Machine-readable logs enable powerful queries and alerts. For local development, consider human-readable formats.