跳到正文
Skillpedia
部署与云(DevOps)75k · #2835

error-monitoring

它能做什么

这项技能检查正在运行的应用是否将其错误报告给监控服务,并帮助设置监控。适用于运行真实用户依赖的应用的团队。

适用场景

  • ✓当你的应用已上线,而你无法看到用户遇到的错误的时候。
  • ✓当你开始新项目,并希望从一开始就进行监控的时候。
  • ✓当用户报告了你并不知道的问题的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-monitoring/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-monitoring/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2835
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能