sentry-advanced-troubleshooting

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Sentry 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

操作步骤

  1. Enable debug mode in SDK configuration to see verbose logging
  2. Verify SDK initialization by checking if client exists after init
  3. Test network connectivity to Sentry ingest endpoint
  4. Check sampling configuration to ensure events are not being dropped
  5. Temporarily disable beforeSend filtering during debugging
  6. Use sentry-cli sourcemaps explain to diagnose source map issues
  7. Verify transaction creation and finish calls for performance data
  8. Check breadcrumb capture with beforeBreadcrumb debugging
  9. Resolve SDK conflicts by ensuring single initialization
  10. Run diagnostic script to generate comprehensive health report
  1. 在SDK配置中启用调试模式以查看详细日志
  2. 通过检查初始化后客户端是否存在,验证SDK初始化状态
  3. 测试与Sentry数据接收端点的网络连通性
  4. 检查采样配置,确保事件未被丢弃
  5. 调试期间临时禁用beforeSend过滤机制
  6. 使用sentry-cli sourcemaps explain命令诊断Source Map问题
  7. 验证性能数据的事务创建与完成调用
  8. 通过beforeBreadcrumb调试检查面包屑捕获情况
  9. 通过确保仅初始化一次来解决SDK冲突问题
  10. 运行诊断脚本生成全面的健康报告

Output

输出结果

  • Root cause identified for SDK issues
  • Source map problems resolved
  • Event capture verified working
  • Performance monitoring validated
  • 已识别SDK问题的根本原因
  • 已解决Source Map问题
  • 已验证事件捕获功能正常
  • 已验证性能监控功能正常

Error Handling

错误处理

See
{baseDir}/references/errors.md
for comprehensive error handling.
请查看
{baseDir}/references/errors.md
获取全面的错误处理指南。

Examples

示例

See
{baseDir}/references/examples.md
for detailed examples.
请查看
{baseDir}/references/examples.md
获取详细示例。

Resources

参考资源