Releases: getsentry/sentry-react-native
5.29.0
Warning
Due to a bug (getsentry/sentry-cocoa#4280) introduced in Sentry Cocoa 8.33.0, we deprecated this release and recommend upgrading to Sentry React Native SDK 5.31.0 or newer.
Features
TimeToInitialDisplay
andTimeToFullDisplay
start the time to display spans on mount (#4020)
Fixed
- fix(ttid): End and measure TTID regardless current active span (#4019)
- Fixes possible missing TTID measurements and spans
- Fix crash when passing array as data to
Sentry.addBreadcrumb({ data: [] })
(#4021)- The expected
data
type is plain JS object, otherwise the data might be lost.
- The expected
- Fix
requireNativeComponent
missing inreact-native-web
(#3958)
Dependencies
5.28.0
Warning
Due to a bug (getsentry/sentry-cocoa#4280) introduced in Sentry Cocoa 8.33.0, we deprecated this release and recommend upgrading to Sentry React Native SDK 5.31.0 or newer.
Fixes
- Support
[email protected]
newsourceMapString
export (#4004) Sentry.captureMessage
stack trace is inevent.exception
(moved fromevent.threads
) (#3635, #3988)- To revert to the old behavior (causing the stack to be unsymbolicated) use
useThreadsForMessageStack
option
- To revert to the old behavior (causing the stack to be unsymbolicated) use
Dependencies
5.27.0
5.26.0
Features
-
Session Replay Public Beta (#3830)
To enable Replay use the
replaysSessionSampleRate
orreplaysOnErrorSampleRate
options.import * as Sentry from '@sentry/react-native'; Sentry.init({ _experiments: { replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, }, });
To add React Component Names use
annotateReactComponents
inmetro.config.js
.// For Expo const { getSentryExpoConfig } = require("@sentry/react-native/metro"); const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true }); // For RN const { getDefaultConfig } = require('@react-native/metro-config'); const { withSentryConfig } = require('@sentry/react-native/metro'); module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
To change default redaction behavior add the
mobileReplayIntegration
.import * as Sentry from '@sentry/react-native'; Sentry.init({ _experiments: { replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, }, integrations: [ Sentry.mobileReplayIntegration({ maskAllImages: true, maskAllVectors: true, maskAllText: true, }), ], });
To learn more visit Sentry's Mobile Session Replay documentation page.
Dependencies
5.26.0-alpha.3
Features
-
Redact
react-native-svg
SVGs whenmaskAllVectors
(#3930) -
Add
annotateReactComponents
option to@sentry/react-native/metro
(#3916)// For Expo const { getSentryExpoConfig } = require("@sentry/react-native/metro"); const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true }); // For RN const { getDefaultConfig } = require('@react-native/metro-config'); const { withSentryConfig } = require('@sentry/react-native/metro'); module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
Fixes
- Add
app.foreground/background
breadcrumbs to iOS Replays (#3932)
Dependencies
5.25.0
Features
- Improved Touch Event Breadcrumb components structure (#3899)
- Set
currentScreen
on native scope (#3927)
Fixes
error.cause
chain is locally symbolicated in development builds (#3920)sentry-expo-upload-sourcemaps
no longer requires Sentry url when uploading sourcemaps tosentry.io
(#3915)- Flavor aware Android builds use
SENTRY_AUTH_TOKEN
env as fallback when token not found insentry-flavor-type.properties
. (#3917) mechanism.handled:false
should crash current session (#3900)
Dependencies
5.25.0-alpha.2
Features
- Improve touch event component info if annotated with
@sentry/babel-plugin-component-annotate
(#3899) - Add replay breadcrumbs for touch & navigation events (#3846)
- Add network data to Session Replays (#3912)
- Filter Sentry Event Breadcrumbs from Mobile Replays (#3925)
Fixes
sentry-expo-upload-sourcemaps
no longer requires Sentry url when uploading sourcemaps tosentry.io
(#3915)
Dependencies
- Bump Cocoa SDK from v8.25.0-alpha.0 to v8.30.0 (#3914)
- Bump Android SDK from v7.9.0-alpha.1 to v7.11.0-alpha.2 (#3830)
Access to Mobile Replay is limited to early access orgs on Sentry. If you're interested, sign up for the waitlist
5.24.1
5.24.0
Features
- Add native application start spans (#3855, #3884)
- This doesn't change the app start measurement length, but add child spans (more detail) into the existing app start span
- Added JS Bundle Execution start information to the application start measurements (#3857)
Fixes
- Add more expressive debug logs to Native Frames Integration (#3880)
- Add missing tracing integrations when using
client.init()
(#3882) - Ensure
sentry-cli
doesn't trigger Xcodeerror:
prefix (#3887)- Fixes
--allow-failure
failing Xcode builds
- Fixes
Dependencies
5.23.1
Fix
- Fix failing iOS builds due to missing SentryLevel (#3854)
- Add missing logs to dropped App Start spans (#3861)
- Make all options of
startTimeToInitialDisplaySpan
optional (#3867) - Add Span IDs to Time to Display debug logs (#3868)
- Use TTID end timestamp when TTFD should be updated with an earlier timestamp (#3869)