跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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 的全部技能

报告此技能的问题