logging-observability

Standardize structured logging, correlation IDs, metrics, and traces across distributed services.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/mechemsi/claude-template --skill logging-observability-mechemsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging-observability
Source: https://github.com/mechemsi/claude-template/tree/main/skills/logging-observability
Command: npx skills add https://github.com/mechemsi/claude-template --skill logging-observability-mechemsi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Logging and observability are critical for diagnosing issues, measuring health, and preventing outages. Without structured logs and traceability, debugging distributed systems becomes slow and error-prone.

Core Features & Use Cases

  • Structured logging: emit machine-readable events with consistent fields (timestamp, level, service, traceId).
  • Traceability and correlation: propagate a single request ID across services for end-to-end debugging.
  • Metrics and dashboards: design RED/USE-style metrics and alerting to detect anomalies and uptime issues.
  • Use Case: when a new service is deployed, you can quickly locate latency bottlenecks and failing endpoints across the stack.

Quick Start

Set up a structured, JSON-based logger and propagate a traceId across services to enable end-to-end observability.

Frequently Asked Questions about logging-observability

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

FAQPage Schema
How do I implement structured logging across distributed services?

Structured logging emits machine-readable JSON events with consistent fields like timestamp, level, service, and traceId to standardize observability across distributed services. This enables fast debugging and reliable health monitoring for complex architectures.

What is a correlation ID and how does it help with end-to-end debugging?

A correlation ID, or traceId, propagates a single request identifier across services for end-to-end debugging. Propagating this traceId allows you to track a single request through multiple services to quickly locate latency bottlenecks and failing endpoints.

How do I design metrics and alerting to detect application anomalies?

Designing metrics and alerting involves applying RED or USE-style metrics to detect anomalies and uptime issues. This approach measures application health, prevents outages, and helps identify latency bottlenecks across the stack when new services are deployed.

Does this approach to observability work for my existing distributed architecture?

This observability approach applies to applications with distributed architectures requiring structured logs, correlation IDs, metrics, and traces. It satisfies requirements for structured logging formats, recommended log levels, and safe data handling with redaction policies across services.

What is the best way to handle safe data and redaction in production logs?

The best way to handle safe data in production logs is applying redaction policies to structured logging formats. This ensures sensitive information is masked while maintaining consistent, machine-readable events for diagnosing issues and measuring system health.