Opt-in breadcrumb timeline capture for severe long tasks
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 18/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, react-native, typescript
调研方向
This is a design discussion, not a scoped change: it opens with two unresolved questions (reliability of performance.timeOrigin on RN 0.82+ New Architecture, and whether the default maxBreadcrumbs of 100 is enough) that need an answer before any code is written. Start by reading how the existing long-task detection emits events and how createReduxEnhancer and the fetch/xhr/navigation integrations attach breadcrumbs, then read the related span issue and getsentry/sentry-react-native#6185 for context. Done here means a written proposal — threshold option, per-session cap, screen-based fingerprint, and how performance.timeOrigin + entry.startTime maps to the breadcrumb window — agreed with the team before implementation.
由索引模型根据 Issue 内容生成。
描述
A long task tells you that the JS thread was blocked, but not what led to it. Customers who need the Redux action / network / navigation timeline around a long task keep their own ring-buffer instrumentation next to the SDK. The SDK already records most of that timeline as breadcrumbs (createReduxEnhancer actions, fetch/xhr, navigation, touches).
Proposal (team discussion):
- Above a second threshold (e.g.
captureThresholdMs: 1000), emit a warning-level event that carries the breadcrumbs from shortly before the task through its end. Events already carry breadcrumbs,view_namesand the replay link; log attributes are flat and fit a breadcrumb array poorly. - Off by default, with a per-session cap.
- Fingerprint by screen, since there is no stack.
- Match the window by converting
performance.timeOrigin + entry.startTimeto wall-clock time.
Open questions: whether performance.timeOrigin is reliable on RN 0.82+ New Architecture; whether the default maxBreadcrumbs (100) keeps enough history in apps that dispatch many Redux actions. Breadcrumbs do not cover component renders; the ui.long_task span issue covers that side.
Raised by Chris Aigner from customer feedback (CRO-917). Related: getsentry/sentry-react-native#6185.
Action taken by Junior.
- 主要语言
- 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
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
难度 2/5 1-3 小时 新手友好度 68/100
mckinsey/agents-at-scale-ark#4091 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 94/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
NUS-Project-SaBai/project-sabai#386 ·
维护者通常 3 天内回复
-
android needs clarification
难度 2/5 1-3 小时 新手友好度 72/100
super-productivity/super-productivity#12105 · 3 条评论 ·
维护者通常 1 天内回复