Register React Native span ops, Expo resource attributes, long-task metric and stall keys in Sentry Conventions
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- react-native, typescript
研究方向
Start with the listed SDK entry points: src/js/tracing/ops.ts, the Expo and React Navigation tracing files, src/js/integrations/longTask.ts, and the stall measurement files. Check how each value is sent, then review the Sentry Conventions registries and use yarn run create:metric for the metric entry. Done means the conventions PRs are merged, the SDK uses registered constants, and rejected or deferred items have reasons recorded; each conventions PR also needs code owner approval and a three business day wait.
由索引模型根據 Issue 內容生成。
描述
Several span ops, attributes and a metric that only the React Native SDK sends aren't in Sentry Conventions. Register them, then switch the SDK to the constants.
Span ops
navigation.processing,navigation.prefetchresource.image.load,resource.image.prefetch: compare with the registeredresource.img.resource.assetui.action.touch: register it, or plan a move to the registeredui.interaction.press. A move changes the op name, so it would go in the next major.
Attributes
image.url,image.url_count(Expo Image): check whetherurl.fullfitsimage.url.asset.count(Expo Asset)sentry.rn.discard_reason: first check whether it reaches the wire. If it does, register it; if it's internal-only, strip it before sending.
Metric
react_native.long_task.duration(distribution, milliseconds) goes into the metrics registry.
Stall measurements
stall_countandstall_longest_timearen't registered.stall_total_timeis already deprecated in favour ofapp.vitals.stall.duration; that migration is tracked in the next-major issue.
Acceptance criteria
- The Sentry Conventions PRs are merged (each needs one code-owner approval, then a 3-business-day wait).
- The SDK uses the constants for everything registered.
- Anything rejected or deferred is recorded in this issue, with the reason.
Agent notes
- Ops:
src/js/tracing/ops.ts,tracing/reactnavigation.ts(lines 535 and 661),tracing/expoRouter.ts(line 102),tracing/expoImage.ts(lines 101 and 152),tracing/expoAsset.ts(line 76),touchevents.tsx(line 285). - Attributes:
tracing/expoImage.ts(lines 105, 106 and 156),tracing/expoAsset.ts(line 80),tracing/onSpanEndUtils.ts(line 19). - Metric:
src/js/integrations/longTask.ts(line 9). - Stall keys:
src/js/measurements.ts,tracing/integrations/stalltracking.ts. - Metric file shape:
model/metrics/<ns>/<ns>__x__y.jsonwith{key, brief, instrument, unit, attributes}, created withyarn run create:metric.
- 主要語言
- TypeScript
- 星號
- 1.8k
- 分支
- 371
- 平均合併
- 22 小時 3 分鐘
- 30 天內合併 PR
- 106
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-react-native 的其他 Issue
-
React-Native
難度 2/5 1-3 小時 新手友好度 78/100
getsentry/sentry-react-native#7073 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement React-Native
難度 2/5 1-3 小時 新手友好度 80/100
getsentry/sentry-react-native#7055 · 1 則留言 ·
維護者通常 1 天內回覆
-
React-Native Replays Task
難度 2/5 1-3 小時 新手友好度 88/100
getsentry/sentry-react-native#6680 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement React-Native
難度 2/5 1-3 小時 新手友好度 68/100
getsentry/sentry-react-native#6143 · 2 則留言 ·
維護者通常 1 天內回覆
-
React-Native Task User Feedbacks
難度 2/5 1-3 小時 新手友好度 84/100
getsentry/sentry-react-native#5932 · 2 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-react-native 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
danielmiessler/LifeOS#3028 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
-
iOS: last line of a long UITextView text is sometimes not drawn (frame a fraction of a point short)未關閉
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 90/100
Koenkk/zigbee2mqtt#33855 ·
維護者通常 1 天內回覆