达到数据和人工智能成熟度是释放业务价值的关键
我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。
安装 Docker 镜像
默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:
# 拉取镜像 docker pull getsentry/sentry-cli # 执行命令 docker run --rm -v $(pwd):/work getsentry/sentry-cli --help # sentry-cli 1.68.0 # Command line utility for Sentry. # This tool helps you manage remote resources on a Sentry server like # sourcemaps, debug symbols or releases. Use `--help` on the subcommands # to learn more about them. # USAGE: # sentry-cli # OPTIONS: # --api-key <API_KEY> # The given Sentry API key. # --auth-token <AUTH_TOKEN> # Use the given Sentry auth token. # -h, --help # Print this help message. # --log-level <LOG_LEVEL> # Set the log output verbosity. [possible values: trace, debug, info, warn, error] # --url # Fully qualified URL to the Sentry server. # [defaults to https://sentry.io/] # -V, --version # Print version information. # SUBCOMMANDS: # bash-hook Prints out a bash script that does error handling. # difutil Locate or analyze debug information files. # help Prints this message or the help of the given subcommand(s) # info Print information about the Sentry server. # issues Manage issues in Sentry. # login Authenticate with the Sentry server. # projects Manage projects on Sentry. # react-native Upload build artifacts for react-native projects. # releases Manage releases on Sentry. # repos Manage repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information files. # upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults] org=sentry project=react-sentry-demo url=https://x.xxx.com
进入容器内
创建一个新版本:
docker run --rm -it -v $(pwd):/work getsentry/sentry-cli /bin/sh sentry-cli releases new 1.0.0 Refs
https://docs.sentry.io/product/cli/
相关文章:
相关推荐:
- 标签: 常熟银行 村镇银行 净息差 不良率
- 谷歌预告Gemini for Home新进展 全新Nest设备即将亮相
- AI 生成优化 Metal 内核,PyTorch 推理速度提升惊人87%
- 标签: SpaceX Cursor 微软 GitHubCopilot
- 标签: 埃泰克 603293 汽车电子 智能座舱
- 云计算开发:Python3数学函数pow()方法详解
- 中国大模型价格战背后的真相
- 争议应用Neon Mobile冲上美区App Store第二:录制通话数据卖给AI公司,用户隐私换零花钱
- Canva 旗下 Affinity 全新版本重磅发布:免费开放挑战 Adobe 霸主地位
- Meta 政策重大调整:用户与 AI 助手的对话数据将用于全平台广告与内容推送
- 标签: 小鹏 Robotaxi 何小鹏 P7
- 标签: 上海银行 2025年报 一季报 科技贷款
- 标签: 网信中国 大眼哥说车 易车榜 王武松
- 苹果推出AI训练新方法 用任务清单替代人工评分显著提升模型性能
- 阿里云百炼平台上架智谱、Minimax、Kimi等顶尖模型,千问云官网售卖
- IBM收购加拿大金融技术公司:增强电子支付能力
- 标签: Alphabet 谷歌财报 YouTube广告 谷歌云
- 标签: 一汽大众 ID.4 CROZZ 三电质保 车主权益
- 用一个密钥,打开全球AI的能力边界 ——我们正在打造面向未来的“全球AI聚合网关”
- 云存储公司Dropbox Q1营收和利润均超预期:净利同比增长21%
