-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade @sentry/react-native
to version 5
#337
Conversation
Awesome PR, I can confirm it works, now also on Android with source maps. One minor problem, at least while installing from github source branch in our CI, is the
So it might be good to upgrade Also the latest changes are not present in Hoping to see this merge soon, thanks! |
@KiwiKilian Thank you for trying this out. Happy to hear that source maps on Android work. That is awesome. I've updated the dev deps and the latest plugin build. |
@kbrandwijk Since there are breaking changes in Would it make sense to release these changes as |
I've tested it, and source maps seem to work for both ios and Android. Thanks for pushing this forward! |
hi, I'd really like to test this out as well. I noticed that in sentry-expo 7 the Sentry.init({}) parameters have changed. Thanks in advance :) |
I didn't have to change anything to init. Our setup looks like this: import * as Sentry from 'sentry-expo';
import * as SentryReactNative from '@sentry/react-native';
import Constants from 'expo-constants';
const SENTRY_ENVIRONMENT = Constants.expoConfig?.extra?.appVariant.toLowerCase();
export const routingInstrumentation = new SentryReactNative.ReactNavigationInstrumentation();
Sentry.init({
enableInExpoDevelopment: false,
dsn: '<your-dsn-here>',
enabled: SENTRY_ENVIRONMENT !== 'development',
environment: SENTRY_ENVIRONMENT,
integrations: [
new SentryReactNative.ReactNativeTracing({
routingInstrumentation,
}),
],
}); |
Checklist
Why
Thanks to @jongbelegen for starting this upgrade.
After this PR
sentry-expo
will have all new features and fixes fromsentry-react-native
version 5.How
This PR reflects the changes described in the migration guide https://docs.sentry.io/platforms/react-native/migration/#from-4x-to-5x
Test Plan
Tested only locally.
iOS example error: https://krystofs-org.sentry.io/share/issue/0d3845c495eb4f6e8ae1061661775d6a/
Android example error: https://krystofs-org.sentry.io/share/issue/5ef20a7f762b4a5b91f61b9e948e2f33/