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.
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.
Track latency, traffic, errors, and saturation for every service boundary.
Modelli di osservabilità Python tra cui registrazione strutturata, metriche e traccia distribuita. Da utilizzare quando si aggiunge la registrazione, si implementa la raccolta di metriche, si imposta la traccia o si esegue il debug dei sistemi di produzione. Fonte: wshobson/agents.