技能 编程开发 Sentry 常见错误排查

Sentry 常见错误排查

v20260311
sentry-common-errors
指导排查常见 Sentry 集成问题,通过配置检查、采样、源码映射、面包屑与诊断命令,恢复监控中的错误采集。
获取技能
419 次下载
概览

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 ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Execute troubleshoot common Sentry integration issues and fixes.

信息
Category 编程开发
Name sentry-common-errors
版本 v20260311
大小 3.09KB
更新时间 2026-03-12
语言