0152-python-observability

Community

Debug production faster with logs and traces

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the difficulty of understanding what happened in production by giving you structured logs, measurable metrics, and distributed tracing so you can quickly answer what failed, where it occurred, and why.

Core Features & Use Cases

  • Structured logging with consistent fields: Emit JSON logs (via structlog) that are easy to query, filter, and correlate across services.
  • Metrics for the four golden signals: Capture latency, traffic, errors, and saturation using Prometheus primitives like counters, histograms, and gauges.
  • Distributed tracing with correlation IDs: Propagate a request correlation ID through logs and traces to follow an execution path end-to-end.
  • Use cases: Add observability while building or debugging FastAPI services, diagnosing slow endpoints, tracking error rates by operation, and creating dashboards for service health.

Quick Start

Instrument your Python service by enabling structured JSON logging with structlog, adding Prometheus metrics for request latency/errors, and propagating an X-Correlation-ID header through your request middleware.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0152-python-observability
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0152-python-observability

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.