sentry-advanced-troubleshooting
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Advanced Troubleshooting
Sentry高级故障排查
Prerequisites
前提条件
- Debug mode enabled in SDK
- Access to application logs
- Sentry dashboard access
- Sentry CLI installed for source map debugging
- 已在SDK中启用调试模式
- 可访问应用程序日志
- 拥有Sentry控制台访问权限
- 已安装Sentry CLI用于Source Map调试
Instructions
操作步骤
- Enable debug mode in SDK configuration to see verbose logging
- Verify SDK initialization by checking if client exists after init
- Test network connectivity to Sentry ingest endpoint
- Check sampling configuration to ensure events are not being dropped
- Temporarily disable beforeSend filtering during debugging
- Use sentry-cli sourcemaps explain to diagnose source map issues
- Verify transaction creation and finish calls for performance data
- Check breadcrumb capture with beforeBreadcrumb debugging
- Resolve SDK conflicts by ensuring single initialization
- Run diagnostic script to generate comprehensive health report
- 在SDK配置中启用调试模式以查看详细日志
- 通过检查初始化后客户端是否存在,验证SDK初始化状态
- 测试与Sentry数据接收端点的网络连通性
- 检查采样配置,确保事件未被丢弃
- 调试期间临时禁用beforeSend过滤机制
- 使用sentry-cli sourcemaps explain命令诊断Source Map问题
- 验证性能数据的事务创建与完成调用
- 通过beforeBreadcrumb调试检查面包屑捕获情况
- 通过确保仅初始化一次来解决SDK冲突问题
- 运行诊断脚本生成全面的健康报告
Output
输出结果
- Root cause identified for SDK issues
- Source map problems resolved
- Event capture verified working
- Performance monitoring validated
- 已识别SDK问题的根本原因
- 已解决Source Map问题
- 已验证事件捕获功能正常
- 已验证性能监控功能正常
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