sentry-prod-checklist
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry 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
操作指引
- Configure production DSN via environment variables (never hardcode)
- Set environment to "production" and configure release version
- Generate source maps during build process
- Upload source maps using sentry-cli releases commands
- Verify security settings (sendDefaultPii: false, debug: false)
- Configure appropriate sample rates for production volume
- Set up alert rules with team notification channels
- Connect source control and issue tracker integrations
- Run verification test to confirm error capture and source maps
- Document rollback procedure for emergency disable
- 通过环境变量配置生产环境DSN(禁止硬编码)
- 将环境标识设置为"production"并配置发布版本号
- 在构建流程中生成source map
- 使用sentry-cli releases命令上传source map
- 验证安全配置(sendDefaultPii: false, debug: false)
- 针对生产环境流量配置合理的采样率
- 结合团队通知渠道设置告警规则
- 对接源码管理和Issue追踪工具集成
- 执行验证测试,确认错误捕获和source map功能正常
- 编写紧急禁用场景下的回滚流程文档
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 for comprehensive error handling.
{baseDir}/references/errors.md完整错误处理方案请查看
{baseDir}/references/errors.mdExamples
示例
See for detailed examples.
{baseDir}/references/examples.md详细示例请查看
{baseDir}/references/examples.md