Features
- Extends the experimental support of UI profiling to iOS (#5611)
Sentry.init({ _experiments: { profilingOptions: { profileSessionSampleRate: 1.0, lifecycle: 'trace', // or 'manual' startOnAppStart: true, }, }, });
- Note that the
androidProfilingOptionskey is now deprecated, andprofilingOptionsshould be used instead
- Note that the
- Add performance tracking for Expo Router route prefetching (#5606)
- New
wrapExpoRouterutility to instrument manualprefetch()calls with performance spans - New
enablePrefetchTrackingoption forreactNavigationIntegrationto automatically track PRELOAD actions
// Option 1: Wrap the router for manual prefetch tracking import { wrapExpoRouter } from '@sentry/react-native'; import { useRouter } from 'expo-router'; const router = wrapExpoRouter(useRouter()); router.prefetch('/details'); // Creates a span measuring prefetch performance // Option 2: Enable automatic prefetch tracking in the integration Sentry.init({ integrations: [ Sentry.reactNavigationIntegration({ enablePrefetchTracking: true, }), ], });
- New
Fixes
- Fix
SENTRY_ALLOW_FAILUREenvironment variable not being respected in Xcode build scripts (#5616) - Fix iOS dSYM upload for main app in Expo EAS builds by adding inputPaths to build phase (#5617)