sentry-upgrade-migration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Upgrade Migration
Sentry SDK升级迁移指南
Prerequisites
前置条件
- Current Sentry SDK version identified
- Target version changelog reviewed
- Non-production environment for testing
- Test suite for error capture and performance monitoring
- 已确定当前使用的Sentry SDK版本
- 已查阅目标版本的更新日志
- 具备用于测试的非生产环境
- 拥有用于错误捕获和性能监控的测试套件
Instructions
操作步骤
- Check current SDK version with npm list or pip show
- Review release notes and changelog for target version
- Back up current Sentry configuration file
- Update package to target version in non-production first
- Run tests to identify breaking changes
- Update deprecated APIs following migration guide patterns
- Verify error capture works with test error
- Verify performance monitoring works with test transaction
- Deploy to staging and monitor for issues
- Deploy to production after staging validation
- 使用npm list或pip show命令查看当前SDK版本
- 查阅目标版本的发布说明和更新日志
- 备份当前的Sentry配置文件
- 先在非生产环境中将包更新至目标版本
- 运行测试以识别破坏性变更
- 按照迁移指南的模式更新已废弃的API
- 通过测试错误验证错误捕获功能是否正常
- 通过测试事务验证性能监控功能是否正常
- 部署至预发布环境并监控问题
- 预发布环境验证通过后再部署至生产环境
Output
输出结果
- SDK upgraded to target version
- Breaking changes resolved
- Code updated for new APIs
- Error capture verified working
- SDK已升级至目标版本
- 已解决所有破坏性变更问题
- 代码已适配新的API
- 错误捕获功能验证正常
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