File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99## Unreleased
1010
11+ ### Features
12+
13+ - Add performance tracking for Expo Router route prefetching ([ #XXXX] ( https://github.com/getsentry/sentry-react-native/pull/XXXX ) )
14+ - New ` wrapExpoRouter ` utility to instrument manual ` prefetch() ` calls with performance spans
15+ - New ` enablePrefetchTracking ` option for ` reactNavigationIntegration ` to automatically track PRELOAD actions
16+ ``` tsx
17+ // Option 1: Wrap the router for manual prefetch tracking
18+ import { wrapExpoRouter } from ' @sentry/react-native' ;
19+ import { useRouter } from ' expo-router' ;
20+
21+ const router = wrapExpoRouter (useRouter ());
22+ router .prefetch (' /details' ); // Creates a span measuring prefetch performance
23+
24+ // Option 2: Enable automatic prefetch tracking in the integration
25+ Sentry .init ({
26+ integrations: [
27+ Sentry .reactNavigationIntegration ({
28+ enablePrefetchTracking: true ,
29+ }),
30+ ],
31+ });
32+ ```
33+
1134### Dependencies
1235
1336- Bump JavaScript SDK from v10.37.0 to v10.38.0 ([ #5596 ] ( https://github.com/getsentry/sentry-react-native/pull/5596 ) )
You can’t perform that action at this time.
0 commit comments