可观测性建设
原名:observability-and-instrumentation
为应用补充日志、指标、追踪和告警,让线上问题有证据可查。
中文 Skills 技能说明
适合功能准备上线或生产问题难以定位的项目。它会从真实业务问题反推需要记录的信号,避免把密码、令牌、身份证号等敏感信息写入日志,并说明每项指标和告警的用途。
上游能力依据
上游原始适用说明:Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- When to Use
- Process
- 1. Define "working" before instrumenting
- 2. Pick the right signal for each question
- 3. Structured logging
- 4. Metrics
- 5. Distributed tracing
- 6. Alerting
- 7. Verify the telemetry itself
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- Addy Osmani
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/addyosmani/agent-skills/tree/f49337711b7a932b4b338c1d4ad73384df8fd87d/skills/observability-and-instrumentation
适用范围
平台:linux、macos、windows;标签:Observability、Instrumentation、Monitoring
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。