sentry-prod-checklist

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Sentry Prod Checklist

Sentry 生产环境检查清单

Prerequisites

前置条件

  • Sentry account with project created
  • Production DSN separate from development/staging
  • Build pipeline with source map generation
  • sentry-cli installed and configured with auth token
  • 已创建对应项目的Sentry账号
  • 与开发/预发环境隔离的生产环境DSN
  • 支持source map生成的构建流水线
  • 已安装sentry-cli并通过auth token完成配置

Instructions

操作指引

  1. Configure production DSN via environment variables (never hardcode)
  2. Set environment to "production" and configure release version
  3. Generate source maps during build process
  4. Upload source maps using sentry-cli releases commands
  5. Verify security settings (sendDefaultPii: false, debug: false)
  6. Configure appropriate sample rates for production volume
  7. Set up alert rules with team notification channels
  8. Connect source control and issue tracker integrations
  9. Run verification test to confirm error capture and source maps
  10. Document rollback procedure for emergency disable
  1. 通过环境变量配置生产环境DSN(禁止硬编码)
  2. 将环境标识设置为"production"并配置发布版本号
  3. 在构建流程中生成source map
  4. 使用sentry-cli releases命令上传source map
  5. 验证安全配置(sendDefaultPii: false, debug: false)
  6. 针对生产环境流量配置合理的采样率
  7. 结合团队通知渠道设置告警规则
  8. 对接源码管理和Issue追踪工具集成
  9. 执行验证测试,确认错误捕获和source map功能正常
  10. 编写紧急禁用场景下的回滚流程文档

Output

产出物

  • Production-ready Sentry configuration
  • Verified source map uploads
  • Configured alert rules and notifications
  • Documented release workflow
  • Validated error capture with test events
  • 符合生产要求的Sentry配置
  • 已验证的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

参考资源