Skip to content
Back to skills

Observability Setup

ASecurity

Add logs, metrics and traces that make failures diagnosable

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill observability-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Observability Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Observability Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-observability-setup/badge)](https://www.skillsdirectory.com/skills/ansh44233-observability-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Add logs, metrics and traces that make failures diagnosable
profile: full
tags: observability, logging, metrics, tracing
---

# Observability Setup

## Logs
- Structured JSON logs with level, timestamp, service, and a request or trace id on every line.
- Log events and decisions, not data dumps. Never log secrets, tokens, passwords or full PII. Redact at the logger.
- One error log per failure, at the boundary that handles it, with the cause chain.

## Metrics
- The four golden signals per service: request rate, error rate, latency (p50/p95/p99 histograms, not averages) and saturation.
- Keep label cardinality bounded: no user ids, emails or raw URLs as labels.

## Traces
- OpenTelemetry SDK with context propagation across HTTP, queues and background jobs. Use auto-instrumentation first, then manual spans around expensive work.
- Sample deliberately (head sampling plus always keeping errors).

## Alerts
- Alert on SLO burn rate and user-visible symptoms, not on every cause. Every alert links a runbook.

## Verify
Trigger a known failing request locally and confirm you can follow it from the log line (via trace id) to the trace and to the error metric moving.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.