Features
-
Exclude Sentry Web Replay, reducing the code in 130KB. (#4006)
- You can keep Sentry Web Replay by setting
includeWebReplaytotruein your metro config as shown in the snippet:
// For Expo const { getSentryExpoConfig } = require("@sentry/react-native/metro"); const config = getSentryExpoConfig(__dirname, { includeWebReplay: true }); // For RN const { getDefaultConfig } = require('@react-native/metro-config'); const { withSentryConfig } = require('@sentry/react-native/metro'); module.exports = withSentryConfig(getDefaultConfig(__dirname), { includeWebReplay: true });
- You can keep Sentry Web Replay by setting
Changes
- Add Android Logger when new frame event is not emitted (#4081)
- React Native Tracing Deprecations (#4073)
new ReactNativeTracingtoreactNativeTracingIntegration()new ReactNavigationInstrumentationtoreactNavigationIntegration().new ReactNativeNavigationInstrumentationtoreactNativeNavigationIntegration().ReactNavigationV4Instrumentationwon't be supported in the next major SDK version, upgrade toreact-navigation@5or newer.RoutingInstrumentationandRoutingInstrumentationInstancereplace byIntegrationinterface from@sentry/types.enableAppStartTracking,enableNativeFramesTracking,enableStallTracking,enableUserInteractionTracingmoved toSentry.init({})root options.