observability-logging

Automate JSON-structured logging and OpenTelemetry tracing for AI/LLM pipelines.

2|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill observability-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-logging
Source: https://github.com/ricardoroche/ricardos-claude-code/tree/main/.claude/skills/observability-logging
Command: npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill observability-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill promotes structured logging and observability with OpenTelemetry-friendly traces and LLM-specific metrics for tokens, cost, and latency.

Core Features & Use Cases

  • Structured Logging: JSON-formatted logs with standard fields.
  • LLM-Specific Metrics: Track tokens, cost, latency, and success indicators.
  • Correlation & Tracing: Add correlation IDs and trace context for end-to-end observability.

Quick Start

Instrument your AI service with structured JSON logs and LLMMetrics so events are traceable and analyzable.

Frequently Asked Questions about observability-logging

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

FAQPage Schema
How do I add structured logging to my AI application?

Structured logging formats application events as JSON with consistent fields, making logs machine-readable and queryable. This Skill automates JSON-structured logs for AI/LLM pipelines, ensuring correlation IDs and LLM-specific metrics (tokens, cost, latency) are captured consistently across requests for end-to-end traceability.

What is OpenTelemetry tracing and why do I need it for LLM applications?

OpenTelemetry tracing captures request flows across distributed systems using trace context and correlation IDs. For LLM apps, it enables visibility into token usage, inference latency, and cost per request, linking these metrics back to user actions and system components for observability.

How do I track token usage and costs across my LLM pipeline?

LLM-specific metrics track tokens consumed, inference latency, and associated costs per API call. This Skill instruments your AI pipeline to automatically log these metrics in structured JSON format with correlation context, allowing you to analyze cost and performance by request, model, or user.

Can I use correlation IDs to link requests across microservices?

Yes. Correlation IDs propagate trace context across service boundaries, enabling end-to-end request tracking. This Skill applies correlation IDs automatically during LLM pipeline instrumentation, so logs and traces from different services remain linked for unified observability.

What's the difference between structured logs and plain text logs for observability?

Structured logs use JSON with typed, consistent fields, enabling filtering, aggregation, and alerting by machines. Plain text logs require parsing and are error-prone. This Skill produces structured logs with redaction-friendly scaffolding, making sensitive data handling and compliance easier.