error-monitoring
它能做什么
这项技能检查正在运行的应用是否将其错误报告给监控服务,并帮助设置监控。适用于运行真实用户依赖的应用的团队。
适用场景
- ✓当你的应用已上线,而你无法看到用户遇到的错误的时候。
- ✓当你开始新项目,并希望从一开始就进行监控的时候。
- ✓当用户报告了你并不知道的问题的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-monitoring/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我设置错误监控,让我在正式运行的应用崩溃时能及时得知。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查 Sentry 或 Datadog 等监控工具是否在捕获未处理的错误和失败的请求。它会建议添加 SDK、为发布版本加上标记,并设置告警。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Integrate real-time error monitoring in production
Production errors are invisible without monitoring. Users rarely file detailed bug reports — they simply leave. Error monitoring gives you actionable stack traces, breadcrumbs, and user context within seconds of an issue occurring, cutting mean time to detect (MTTD) from days to minutes and dramatically reducing the cost of incidents.
Quick Reference
- Install an error monitoring SDK (Sentry, Datadog, Bugsnag, etc.) early in the app entry point
- Capture unhandled exceptions, unhandled promise rejections, and React error boundaries
- Attach user context, release version, and environment to every event
- Configure alert thresholds and on-call routing so critical errors page the right team
- Capture failed network requests and production RUM signals such as Core Web Vitals
Check
Check whether an error monitoring service is configured and capturing unhandled errors, promise rejections, React/framework-level errors, failed network requests, and production Core Web Vitals signals.
Fix
Integrate an error monitoring SDK, configure environment and release tagging, capture failed network requests and RUM metrics, and set up alerts for critical error thresholds and regressions.
Explain
Explain how error monitoring services work, what signals they capture, and how error grouping reduces alert noise.
Code Review
Review the monitoring initialisation code. Flag missing user context, absent release tagging, overly broad event filters, missing network instrumentation, and any patterns that would swallow errors before they reach the monitoring service.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/testing/error-monitoring
常见问题
它提到了哪些工具?
它以 Sentry、Datadog 和 Bugsnag 等选项为例。
它会捕获哪些内容?
涵盖未处理的异常、未处理的 Promise 拒绝、框架错误以及失败的网络请求。
为什么要对错误进行分组?
这项技能说明错误分组可以减少告警噪音,使同一问题不会触发多条独立的告警。
详情
作者的原始描述
Use when setting up a new project's production observability stack, reviewing incident response readiness, or investigating why errors are going undetected.
热度
- GitHub 星标
- 75k
- 排名
- #2835
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。