跳到正文
FunCoding

observability

Implement observability: structured logging, distributed tracing, metrics collection, and alerting strategies.

Star
709
许可证
MIT
最近提交
2026年12月1日

src/alphacode_base/bundled_skills/observability/SKILL.md

在 GitHub 上查看

Observability Skill

Make systems transparent and debuggable.

Three Pillars

  • Logs: structured, contextual event records (JSON, not free-text)
  • Metrics: numerical measurements over time (counters, gauges, histograms)
  • Traces: request flow across service boundaries

Structured Logging

{
  "level": "error",
  "ts": "2024-01-15T10:30:00Z",
  "msg": "payment processing failed",
  "user_id": "u_123",
  "order_id": "o_456",
  "provider": "stripe",
  "error": "card_declined"
}

Key Metrics (RED Method)

  • Rate: requests per second
  • Errors: error rate (errors / total requests)
  • Duration: latency distribution (p50, p95, p99)

Alerting Rules

  • Alert on symptoms (high error rate), not causes (high CPU)
  • Use multi-window multi-burn-rate for SLO alerts
  • Include runbook link in every alert
  • Avoid alert fatigue: only page for user-impacting issues

相似的 Skill

精选

internal-comms

写内部沟通文档,遵循公司格式,包括状态报告、领导更新和公司通讯。

ANanthropics/skills203k近 7 天新增 3,333 个 star

canary

GAgarrytan/gstack143k近 7 天新增 636 个 star

observability-and-instrumentation

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

精选

shipping-and-launch

上线前逐项检查,规划监控、分阶段发布和回滚方案。

ADaddyosmani/agent-skills122k近 7 天新增 1,627 个 star

paperclip-board

PApaperclipai/paperclip119k近 7 天新增 2,120 个 star

ruview-configure

RUruvnet/RuView106k近 7 天新增 693 个 star