observability-setup

Configure structured JSON logs, RED metrics, and distributed tracing with OpenTelemetry.

6|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/wesleyosantos91/multi-agents --skill observability-setup-wesleyosantos91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-setup
Source: https://github.com/wesleyosantos91/multi-agents/tree/main/devin/.devin/skills/observability-setup
Command: npx skills add https://github.com/wesleyosantos91/multi-agents --skill observability-setup-wesleyosantos91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you configure reliable observability so you can diagnose production issues using consistent logs, meaningful metrics, and traceable distributed execution.

Core Features & Use Cases

  • Structured logs: Emits JSON logs in production with required fields like timestamp, level, message, service, and traceId, while avoiding sensitive data.
  • RED metrics: Defines request rate, error rate, and latency (p50/p95/p99) per endpoint, plus saturation signals for CPU, memory, and connection pressure; supports USE patterns for resources.
  • Distributed tracing: Propagates traceId across services and creates spans for meaningful operations to correlate logs, metrics, and traces.

Quick Start

Use the observability-setup skill to audit and implement structured JSON logging, RED/USE metrics, and distributed tracing with propagated trace IDs for your services.

Frequently Asked Questions about observability-setup

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

FAQPage Schema
How do I implement structured JSON logging for production services?

To implement structured JSON logging, emit logs with required fields including timestamp, level, message, service, and traceId while avoiding sensitive data. This enables reliable correlation across distributed services for diagnosing production issues.

What are RED metrics and how do they help monitor API latency?

RED metrics define request rate, error rate, and latency per endpoint, capturing duration with p50, p95, and p99 percentiles. They help monitor API latency and diagnose performance bottlenecks by measuring traffic patterns and response times across services.

How do I propagate traceId across microservices for distributed tracing?

Propagating traceId across microservices requires OpenTelemetry-based instrumentation to create spans for meaningful operations. This correlates logs, metrics, and traces across distributed services, enabling you to trace execution paths and pinpoint failure locations.

Does OpenTelemetry work with my existing stack for end-to-end observability?

OpenTelemetry supports instrumentation for various stacks to implement end-to-end observability across distributed systems. It enables structured logs, RED metrics, and distributed tracing with propagated trace IDs for supported service environments.

What is the best way to correlate failures across microservices during an incident?

The best way to correlate failures across microservices is combining structured JSON logs with traceId propagation and RED metrics per endpoint. This lets you link error spikes and latency anomalies to specific distributed operations for faster diagnosis.

When should I not use RED metrics for resource monitoring?

RED metrics target request-driven endpoints, so use USE patterns instead for resource monitoring. When you need to track CPU, memory, and connection saturation signals rather than request rate or latency, USE patterns provide the appropriate resource utilization data.