sentry-common-errors
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Common Errors
Sentry常见错误
Prerequisites
前提条件
- Sentry SDK installed
- Debug mode enabled for troubleshooting
- Access to Sentry dashboard
- Application logs available
- 已安装Sentry SDK
- 已启用调试模式以进行问题排查
- 拥有Sentry控制台访问权限
- 可获取应用日志
Instructions
操作步骤
- Enable debug mode in SDK configuration for verbose output
- Verify DSN is set correctly in environment variables
- Check beforeSend function returns event (not undefined)
- Review sampling rates to ensure events are not being dropped
- Verify source maps are uploaded with correct release version
- Set user context after authentication for user tracking
- Add ignoreErrors patterns for noisy errors to reduce volume
- Enable Breadcrumbs integration with appropriate options
- Set tracesSampleRate greater than 0 for performance monitoring
- Run diagnostic commands to verify connectivity and capture
- 在SDK配置中启用调试模式以获取详细输出
- 验证环境变量中DSN设置是否正确
- 检查beforeSend函数是否返回事件(而非undefined)
- 查看采样率设置,确保事件未被丢弃
- 验证源映射文件是否已随正确的版本号上传
- 认证完成后设置用户上下文以实现用户追踪
- 添加ignoreErrors规则以过滤冗余错误,减少数据量
- 启用Breadcrumbs集成并配置合适的选项
- 将tracesSampleRate设置为大于0的值以启用性能监控
- 运行诊断命令以验证连接性和事件捕获能力
Output
输出结果
- Issue root cause identified
- Configuration fix applied
- Error capture verified working
- Documentation of resolution
- 已识别问题根本原因
- 已应用配置修复
- 已验证错误捕获功能正常工作
- 已记录问题解决过程
Error Handling
错误处理
See for comprehensive error handling.
{baseDir}/references/errors.md请查看获取全面的错误处理指南。
{baseDir}/references/errors.mdExamples
示例
See for detailed examples.
{baseDir}/references/examples.md请查看获取详细示例。
{baseDir}/references/examples.md