Skip to content
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

Merged
merged 3 commits into from Apr 28, 2024
Merged

[docs] Update using-sentry.mdx #28377

merged 3 commits into from Apr 28, 2024

Conversation

angelxmoreno
Copy link
Contributor

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

  1. Followed the instructions on Expo docs for integrating Sentry with Expo-Router
  2. I was getting the infamous: Error while fetching native frames: SentryError: Native is disabled exception
  3. I added conditional native frames tracking as per the Sentry docs's Expo-Router integration
  4. I haz no error

Checklist

this is s doc change not a code change 馃し

added conditional for enableNativeFramesTracking when in Expo Go
@expo-bot expo-bot added the bot: passed checks ExpoBot has nothing to complain about label Apr 22, 2024
@@ -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.
Copy link
Member

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 馃槈

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice!

docs/pages/guides/using-sentry.mdx Outdated Show resolved Hide resolved
docs/pages/guides/using-sentry.mdx Outdated Show resolved Hide resolved
angelxmoreno and others added 2 commits April 23, 2024 19:55
Co-authored-by: Brent Vatne <brentvatne@gmail.com>
Co-authored-by: Brent Vatne <brentvatne@gmail.com>
@amandeepmittal amandeepmittal changed the title Update using-sentry.mdx [docs] Update using-sentry.mdx Apr 28, 2024
Copy link
Member

@amandeepmittal amandeepmittal left a 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 馃帀

@amandeepmittal amandeepmittal merged commit 244528a into expo:main Apr 28, 2024
5 checks passed
@angelxmoreno angelxmoreno deleted the patch-1 branch April 28, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants