sentry-deploy-integration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Deploy Integration
Sentry 部署集成
Prerequisites
前提条件
- Sentry CLI installed
- configured
SENTRY_AUTH_TOKEN - Build pipeline access
- Source maps generated during build
- 已安装 Sentry CLI
- 已配置
SENTRY_AUTH_TOKEN - 拥有构建流水线访问权限
- 构建过程中已生成源映射文件
Instructions
操作步骤
- Create release using git SHA or semantic version with sentry-cli
- Upload source maps from build output directory
- Associate commits using sentry-cli releases set-commits --auto
- Finalize the release to mark it complete
- Deploy application to target environment
- Notify Sentry of deployment with environment and timestamps
- Enable session tracking for release health metrics
- Configure environment-specific sample rates
- Set up rollback tracking to record version changes
- Use Sentry dashboard to compare releases and monitor health
- 使用 git SHA 或语义化版本号,通过 sentry-cli 创建发布版本
- 从构建输出目录上传源映射文件
- 使用 sentry-cli releases set-commits --auto 关联提交记录
- 完成发布版本的收尾标记
- 将应用部署至目标环境
- 向 Sentry 通知部署信息,包含环境与时间戳
- 启用会话跟踪以获取发布健康指标
- 配置环境专属的采样率
- 设置回滚跟踪以记录版本变更
- 使用 Sentry 仪表板对比发布版本并监控健康状态
Output
输出结果
- Releases created for each deployment
- Source maps uploaded and linked
- Deployment notifications sent
- Release health metrics tracked
- 为每个部署创建对应的发布版本
- 源映射文件已上传并关联
- 已发送部署通知
- 已跟踪发布健康指标
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