Align standalone app-start vitals attributes with Sentry Conventions

未关闭 适合新手
#7,055 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
80/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react-native, typescript
领域
mobile

调研方向

从src/js/tracing/integrations/appStart.ts的第803–812行附近开始,并检查src/js/tracing/semanticAttributes.ts中的相关常量。将独立路径与 issue 中描述的现有移动 SDK 行为进行比较,然后运行应用启动测试。完成标准是:冷启动和热启动时的独立app.start事务都包含统一值及匹配的冷启动/热启动值,还包含 TTID 和 TTFD,并且测试覆盖这两种启动类型。

由索引模型根据 Issue 内容生成。

描述

Improvement React-Native

The experimental standalone app-start transaction sends app.vitals.start.value, which isn't registered yet. Draft getsentry/sentry-conventions#576 proposes registering that unified value and deprecating the registered app.vitals.start.cold.value / app.vitals.start.warm.value pair. sentry-dart and sentry-cocoa send both forms today; RN sends only the unified one.

Tasks

  • Support #576 landing, since RN already sends the unified value.
  • Until #576 lands, also send app.vitals.start.cold.value or app.vitals.start.warm.value (depending on the start type), matching the other mobile SDKs.
  • Send app.vitals.ttid.value and app.vitals.ttfd.value on the standalone path, as sentry-dart does.

Acceptance criteria

  • The standalone app.start transaction carries the unified value plus the cold/warm value, all from @sentry/conventions constants once registered.
  • Tests cover cold and warm starts.
Agent notes
  • Code: src/js/tracing/integrations/appStart.ts (around lines 803–812). Constants in src/js/tracing/semanticAttributes.ts.
  • The option is @experimental (options.ts, around line 684), so adding attributes is cheap.
主要语言
TypeScript
星标
1.8k
派生
371
平均合并
22 小时 3 分钟
30 天内合并 PR
106

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/sentry-react-native 的其他 Issue

查看 getsentry/sentry-react-native 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。