Register mobile app-start and `ui.load` span ops in Sentry Conventions

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
36/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Start with the existing draft getsentry/sentry-conventions#507 and coordinate with the other mobile SDKs before changing the conventions. The issue identifies the RN constants in src/js/tracing/ops.ts and literal ops in src/js/tracing/timetodisplay.tsx, src/js/tracing/onSpanEndUtils.ts, and src/js/tracing/integrations/appStart.ts; inspect those alongside model/op/mobile.json in Sentry Conventions. Done means the ops are registered there and the RN SDK uses the @sentry/conventions constants.

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

描述

React-Native Task

The app-start and screen-load span ops that all mobile SDKs send aren't in Sentry Conventions. Today model/op/mobile.json only lists generic ops (app, ui, navigation, http, file, serialize, turbo_module, app.update.*).

Ops

  • app.start, app.start.cold, app.start.warm, app.start.extended
  • ui.load, ui.load.initial_display, ui.load.full_display

sentry-cocoa, sentry-java and sentry-dart send these ops too, so this is a cross-mobile change, not an RN-only one. Coordinate with the other mobile SDKs and with the existing draft getsentry/sentry-conventions#507 (mobile span descriptions) rather than opening a competing PR.

Acceptance criteria

  • The ops are registered in Sentry Conventions.
  • The RN SDK uses the @sentry/conventions op constants for them.
Agent notes
  • RN constants: src/js/tracing/ops.ts (APP_START*, UI_LOAD*).
  • Literal ops in:
    • src/js/tracing/timetodisplay.tsx (lines 236 and 300).
    • src/js/tracing/onSpanEndUtils.ts (line 107).
    • src/js/tracing/integrations/appStart.ts.
  • Op file shape: model/op/<category>.json with {name, description, fields:[{name, description}]}.
主要语言
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 摘要。