python-observability

Configure structured logging, Prometheus metrics, and OpenTelemetry tracing in Python applications.

3|2|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill python-observability-wesleyegberto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-observability
Source: https://github.com/wesleyegberto/software-engineering-skills/tree/main/plugins/python/skills/python-observability
Command: npx skills add https://github.com/wesleyegberto/software-engineering-skills --skill python-observability-wesleyegberto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python applications often lack observable signals, making it hard to diagnose production issues quickly. This skill provides a structured approach to logging, metrics, and tracing to improve uptime and debugging capabilities.

Core Features & Use Cases

  • Structured logging with JSON output and contextual fields for correlation.
  • Metrics collection compatible with Prometheus; sample use cases include latency, request rate, and error tracking.
  • Distributed tracing via OpenTelemetry to propagate traces across services and platforms.
  • Use cases include diagnosing production incidents, performance optimization, and building observability dashboards.

Quick Start

Instrument a Python service with structured logging, metrics, and tracing to observe production behavior.

Frequently Asked Questions about python-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add structured logging and distributed tracing to a Python service?

To add structured logging and distributed tracing to a Python service, configure JSON output with contextual fields and implement OpenTelemetry to propagate correlation IDs across request chains. This enables effective observation and diagnosis of production issues.

Can I use OpenTelemetry tracing with FastAPI, Django, or Flask?

Yes, OpenTelemetry tracing can be used with FastAPI, Django, and Flask. The observability setup supports Python services across web APIs, background workers, and data processing pipelines by propagating traces across services and platforms.

What is the best way to collect Prometheus metrics in Python applications?

The best way to collect Prometheus metrics in Python applications is to configure metrics collection compatible with Prometheus standards. This allows you to track latency, request rates, and errors for performance optimization and observability dashboards.

Why do I need correlation IDs propagated through request chains in Python observability?

Correlation IDs are needed in Python observability to link structured logs, metrics, and traces across distributed services. Propagating these IDs through request chains allows you to accurately diagnose production incidents and track request behavior.

Does this Python observability setup work for background workers and data pipelines?

Yes, this Python observability setup works for background workers and data processing pipelines. It provides structured logging, metrics, and tracing applicable across various Python service architectures to improve uptime and debugging capabilities.