sentry-deploy-integration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Sentry Deploy Integration

Sentry 部署集成

Prerequisites

前提条件

  • Sentry CLI installed
  • SENTRY_AUTH_TOKEN
    configured
  • Build pipeline access
  • Source maps generated during build
  • 已安装 Sentry CLI
  • 已配置
    SENTRY_AUTH_TOKEN
  • 拥有构建流水线访问权限
  • 构建过程中已生成源映射文件

Instructions

操作步骤

  1. Create release using git SHA or semantic version with sentry-cli
  2. Upload source maps from build output directory
  3. Associate commits using sentry-cli releases set-commits --auto
  4. Finalize the release to mark it complete
  5. Deploy application to target environment
  6. Notify Sentry of deployment with environment and timestamps
  7. Enable session tracking for release health metrics
  8. Configure environment-specific sample rates
  9. Set up rollback tracking to record version changes
  10. Use Sentry dashboard to compare releases and monitor health
  1. 使用 git SHA 或语义化版本号,通过 sentry-cli 创建发布版本
  2. 从构建输出目录上传源映射文件
  3. 使用 sentry-cli releases set-commits --auto 关联提交记录
  4. 完成发布版本的收尾标记
  5. 将应用部署至目标环境
  6. 向 Sentry 通知部署信息,包含环境与时间戳
  7. 启用会话跟踪以获取发布健康指标
  8. 配置环境专属的采样率
  9. 设置回滚跟踪以记录版本变更
  10. 使用 Sentry 仪表板对比发布版本并监控健康状态

Output

输出结果

  • Releases created for each deployment
  • Source maps uploaded and linked
  • Deployment notifications sent
  • Release health metrics tracked
  • 为每个部署创建对应的发布版本
  • 源映射文件已上传并关联
  • 已发送部署通知
  • 已跟踪发布健康指标

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

参考资源