Skip to content
cccskills
FreePublished on GitHub

observability

Observability decision guide: structured logs, metrics, traces (OTel), error tracking, alerts, SLOs. Use for: observability, logs, metrics, traces, errors, sentry, otel, prometheus, grafana, alerts.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)

Run score Not tested

See how to install

Files included (2)

  • SKILL.md4.3 KB
  • references/llm-observability.md2.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

observability — Decision Guide

Correlate all pillars via trace_id. Each pillar has distinct tooling, sampling, and retention.

Three Pillars + Error Tracking

PillarAnswersRecommendedAlternative
LogsWhat happened?slog (Go) / pino (TS) → LokiDatadog, Cloud Logging
MetricsHow is it performing?Prometheus + GrafanaDatadog, Cloud Monitoring
TracesWhere is time spent?OpenTelemetry → TempoDatadog APM, Jaeger
ErrorsWhat broke?Sentry (web+BE) / Bugsnag (mobile)Rollbar
AlertingIs it degraded?Alertmanager → Slack/PagerDutyGrafana Alerts

Sentry vs Bugsnag: Sentry for web+backend (broader: replay, profiling, self-host). Bugsnag for mobile-first (stability score, symbolication). One DSN per app per platform.

Structured Logging

LevelWhenExample
DEBUGDev only, never prodSQL queries, internal payloads
INFOBusiness events"order created", "payment processed"
WARNDegraded but recoveredRetry succeeded, rate limit near
ERRORRequires attentionException caught, dependency down
FATALProcess must exitMissing config, port in use

Rules: JSON format, one line per event. trace_id in every line. Access logs include method/path/status/latency/user_id/tenant_id. Exclude healthchecks. Audit logs: separate, append-only, >=1yr retention.

Frontend Observability

  • Error boundaries at route + feature level, reported to Sentry
  • Core Web Vitals (LCP, INP, CLS) tracked, alert on regressions
  • Source maps uploaded in CI, .map files deleted from dist, never served publicly
  • Breadcrumbs (~50 pre-error events) for debugging context
  • Release tracking on every deploy for per-release stability

Alert Design

  • Alert on SLO burn rate, not raw values — avoids false positives from spikes
  • Every alert needs a runbook or clear action — no action = delete it
  • Severity: critical (pages on-call), warning (Slack, next day), info (dashboard only)
  • Error tracker: new prod issue → Slack; regression → reopen; spike >10x → PagerDuty

Sampling & Retention

SignalRateRetention
Errors/crashes100%30d (app), >=1yr (audit/security)
Traces10% prod30d
Logs INFO (hot)1-5%30d hot, 90d cold
Logs ERROR+100%30d hot, 90d cold
Metrics—90d full-res, 1yr downsampled

LLM Features and Agents

LLM calls need cost, token, tool-call and quality signals on top of the three pillars.

→ Read references/llm-observability.md for the fields to record per call, OTel GenAI traces, LLM backends (Langfuse, Helicone, Phoenix), metrics, alerts and SLOs

PII Scrubbing

Never log: passwords, tokens, API keys, identity docs, payment data, minor emails, message content. Redact at logger level: password, token, authorization, secret, cookie fields.

Anti-patterns

  • console.log/fmt.Println in prod — unstructured, not indexable
  • PII in logs/errors — legal risk
  • Source maps public — exposes code; missing maps — useless stacks
  • High-cardinality Prometheus labels (user_id, request_id)
  • 100% trace sampling in prod — cost explosion
  • One project for all apps; no env separation — mixed noise
  • Alerts on info severity; alerts without runbook — fatigue
  • Healthcheck log spam; infinite retention — cost
  • Missing trace_id correlation across boundaries

Checklist

  • JSON logger with trace_id injection + PII scrubber
  • OTel SDK with configurable sampling
  • Error tracking: DSN per env, source maps in CI, release tracking
  • RED metrics exposed (Rate, Error%, Duration p95)
  • Grafana dashboard per service
  • Alerts: error rate, latency p95, crashes, memory + SLO burn-rate
  • Healthchecks excluded from logs/traces
  • Retention policy per signal; audit logs separate + append-only
  • Triage: daily inbox, weekly top-10 prioritization

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill