getsentry / getsentry/sentry-react-native

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

Aperta
#5,986 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Improvement React-Native Traces
Lingua principale
TypeScript
Stelle
1.8k
Fork
366
Merge medio
1g 9h
PR unite (30g)
89

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.