getsentry / getsentry/sentry-react-native

Make `useDispatchedActionData` default to `true` in the next major version

未关闭
#5,986 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
Improvement React-Native Traces
主要语言
TypeScript
星标
1.8k
派生
367
平均合并
1 天 6 小时
30 天内合并 PR
94

描述

The `ReactNavigationIntegration` has a `useDispatchedActionData` option (currently defaulting to `false`) that uses dispatched action data to improve navigation span quality:

* Names spans immediately from the action payload instead of starting with a generic "Route Change" name
* Skips spans for actions without a known route name (GO_BACK, POP, POP_TO_TOP, RESET), reducing noise
* Filters out non-navigation actions (SET_PARAMS, OPEN_DRAWER, CLOSE_DRAWER, TOGGLE_DRAWER)

This option was introduced as opt-in to avoid breaking changes, but it provides a strictly better experience for all users. In the next major version (9.x), we should flip the default to true.

贡献指南

打开贡献指南

调研方向

定位 ReactNavigationIntegration 的定义和 useDispatchedActionData 选项,然后检查其默认值是如何为即将推出的 9.x 主版本声明的。将默认值改为 true,并验证文档所述的 action 名称、跳过的 span 和过滤行为仍由现有的集成测试覆盖(如果存在这些测试)。

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

评估

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

把新 issue 发到你的邮箱

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