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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Update using-sentry.mdx #28377
Conversation
added conditional for enableNativeFramesTracking when in Expo Go
docs/pages/guides/using-sentry.mdx
Outdated
@@ -204,6 +205,7 @@ Sentry.init({ | |||
new Sentry.ReactNativeTracing({ | |||
// Pass instrumentation to be used as `routingInstrumentation` | |||
routingInstrumentation, | |||
enableNativeFramesTracking: Constants.appOwnership !== 'expo', // Only in native builds, not in Expo Go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll be deprecating the appOwnership
. It's better to use isRunningInExpoGo
function from the expo
package 馃槈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice!
Co-authored-by: Brent Vatne <brentvatne@gmail.com>
Co-authored-by: Brent Vatne <brentvatne@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this @angelxmoreno!
Welcome to the Expo community and congratulations on your first contribution 馃帀
added conditional for enableNativeFramesTracking when in Expo Go
Why
Cause noobs like myself blindly copy-paste Expo's docs and if the examples provided in the docs do not work, we give up.
How
I cross referenced the instructions given by the Expo docs with the ones given by Sentry:
https://docs.sentry.io/platforms/react-native/performance/instrumentation/expo-router/
Test Plan
Error while fetching native frames: SentryError: Native is disabled
exceptionChecklist
npx expo prebuild
& EAS Build (eg: updated a module plugin).this is s doc change not a code change 馃し