Next major: migrate deprecated frame attributes, vitals measurements and span ops

未关闭
#7,057 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

Start with the listed entry points: src/js/tracing/timetodisplay.tsx, src/js/tracing/integrations/nativeFrames.ts, src/js/tracing/integrations/appStart.ts, src/js/measurements.ts, src/js/tracing/utils.ts, src/js/tracing/integrations/stalltracking.ts, and src/js/touchevents.tsx. Coordinate the frames.* changes with sentry-cocoa and sentry-java, and confirm Mobile Vitals reads the replacement names before removing old keys. Done when deprecated keys are no longer sent and the breaking changes appear in the migration guide.

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

描述

Improvement Next Major React-Native

These keys are deprecated in Sentry Conventions. Relay backfills them, so queries on the new names already work, and Mobile Vitals still reads the old measurements from transactions. Renaming them in the SDK is breaking, so it belongs in the next major.

Changes

Today Replacement
span data frames.total, frames.slow, frames.frozen app.vitals.frames.total.count, .slow.count, .frozen.count
span data frames.delay app.vitals.frames.delay.value
measurements app_start_cold, app_start_warm app.vitals.start.cold.value, .warm.value (or the unified value if sentry-conventions#576 lands)
measurements time_to_initial_display, time_to_full_display app.vitals.ttid.value, app.vitals.ttfd.value
measurement stall_total_time app.vitals.stall.duration
op ui.action.touch (only if we decide to move it) ui.interaction.press

Coordination

sentry-cocoa and sentry-java send the same frames.* keys on native spans, so coordinate the switch to keep data consistent across layers. Confirm that the Mobile Vitals product reads the new names before dropping the old ones.

Acceptance criteria

  • None of the deprecated keys above are sent.
  • The breaking changes are listed in the migration guide.
Agent notes
  • frames.*:
    • src/js/tracing/timetodisplay.tsx (lines 604–606 and 690).
    • src/js/tracing/integrations/nativeFrames.ts (lines 191–203).
    • src/js/tracing/integrations/appStart.ts (lines 339–341 and 849).
  • Measurements:
    • src/js/measurements.ts.
    • src/js/tracing/utils.ts (line 68, TTID/TTFD).
    • src/js/tracing/integrations/stalltracking.ts.
  • Op: src/js/touchevents.tsx (line 285).
主要语言
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 摘要。