o11y

GitHub

指导如何为应用配置可观测性,包括本地 Maple 追踪、Cloudflare 监控及 Effect OTLP 导出。强调复用现有工具、规范 Span 边界与属性,确保遥测数据准确投递至 Sink,并验证链路完整性。

.agents/skills/o11y/SKILL.md yielded-dev/auth

触发场景

需要添加或修改应用的日志、指标和追踪配置 排查应用性能问题或故障原因 验证遥测数据是否正确上报

安装

npx skills add yielded-dev/auth --skill o11y -g -y
更多选项

非标准路径

npx skills add https://github.com/yielded-dev/auth/tree/main/.agents/skills/o11y -g -y

不安装直接使用

npx skills use yielded-dev/auth@o11y

指定 Agent (Claude Code)

npx skills add yielded-dev/auth --skill o11y -a claude-code -g -y

安装 repo 全部 skill

npx skills add yielded-dev/auth --all -g -y

预览 repo 内 skill

npx skills add yielded-dev/auth --list

SKILL.md

Frontmatter
{
    "name": "o11y",
    "description": "Instrument and inspect application traces, logs, and metrics, including local Maple tracing, Cloudflare observability, and Effect OTLP export."
}

Observability

Make critical user paths explainable through the application's normal telemetry. Start with the operation and question: where time went, which work repeated, or why an operation failed. Reuse existing instrumentation and collectors before adding another path.

Keep span boundaries, structured events, and useful counters in the owning library or application so developers, agents, and CI share them. Use stable operation names, service identity, trace correlation, and bounded attributes. Cover meaningful API and agent-loop phases; avoid tracing every helper or recording raw prompts, credentials, and payloads by default.

Read only the relevant reference:

  • Local development and trace/log queries: Maple CLI.
  • Deployed Workers and Durable Objects, native traces, and CPU profiles: Cloudflare.
  • Effect instrumentation and exporter composition: Effect OTLP.

Keep telemetry delivery outside user-facing critical paths where the runtime permits it. Preserve application failures and resource lifetimes, bound buffering and export work, and avoid duplicate exporters or root spans. Include normal instrumentation overhead in performance comparisons.

For a wiring change, verify one representative operation reaches the intended sink with the expected parent/child spans and correlated logs. Reuse that evidence while the wiring is unchanged. A visible trace proves delivery; use measure-performance for regression claims and feedback-loops for slow or duplicated measurement tooling.

版本历史

  • 72bfeeb 当前 2026-10-18 15:34

同 Skill 集合

.agents/skills/alchemy/SKILL.md
.agents/skills/cloudflare/SKILL.md
.agents/skills/dev-kit/SKILL.md
.agents/skills/effect/SKILL.md
.agents/skills/feedback-loops/SKILL.md
.agents/skills/library-first/SKILL.md
.agents/skills/measure-performance/SKILL.md
.agents/skills/project-setup/SKILL.md
.agents/skills/pull-requests/SKILL.md
.agents/skills/show-me/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/testing/SKILL.md

元信息

文件数
0
版本
ba456e0
Hash
1e3bd77f
收录时间
2026-10-18 15:34

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 04:10
浙ICP备14020137号-1