首页/ AI 技能 / @skilllib/skill-2117939930272412356
Skill站外收录 @skilllib/skill-2117939930272412356

sentry-common-errors

诊断并修复 Sentry 集成中的常见问题,包括事件丢失、配置错误及调试模式下的日志输出,通过验证 DSN、采样率、source map 上传与用户上下文设置,确保错误捕获与性能监控正常工作。

0.0 (0) 38 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Sentry Common Errors ## Prerequisites - Sentry SDK installed - Debug mode enabled for troubleshooting - Access to Sentry dashboard - Application logs available ## Instructions 1. Enable debug mode in SDK configuration for verbose output 2. Verify DSN is set correctly in environment variables 3. Check beforeSend function returns event (not undefined) 4. Review sampling rates to ensure events are not being dropped 5. Verify source maps are uploaded with correct release version 6. Set user context after authentication for user tracking 7. Add ignoreErrors patterns for noisy errors to reduce volume 8. Enable Breadcrumbs integration with appropriate options 9. Set tracesSampleRate greater than 0 for performance monitoring 10. Run diagnostic commands to verify connectivity and capture ## Output - Issue root cause identified - Configuration fix applied - Error capture verified working - Documentation of resolution ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Sentry Troubleshooting](https://docs.sentry.io/platforms/javascript/troubleshooting/) - [Sentry Status](https://status.sentry.io)

评论 0

还没有评论,来抢沙发。