本文へ移動
cccskills
無料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.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcaneスター 3(GitHub 3 + cccskills 0)
連携ツールSlackSentryDatadog

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

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

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

SebastianLuser/claude-code-arcane32026年10月27日 更新

SebastianLuser のスキルをすべて見る

このスキルの問題を報告する