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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(sample): Do not execute Sentry in NodeJS during npx expo export #3689

Conversation

krystofwoldrich
Copy link
Member

During Expo export, the JS code is executed, which spams the export output.

This PR adds env to the sample app to avoid this.

#skip-changelog

Copy link
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 471.33 ms 479.82 ms 8.49 ms
Size 17.73 MiB 19.93 MiB 2.19 MiB

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

LGTM!

@lucas-zimerman lucas-zimerman merged commit 21b4d98 into kw-add-expo-router-instrumentation-to-sample-app Mar 20, 2024
50 of 54 checks passed
@lucas-zimerman lucas-zimerman deleted the kw-avoid-executing-sentry-during-export branch March 20, 2024 14:26
krystofwoldrich added a commit that referenced this pull request Mar 21, 2024
* misc(sample): Move `Sentry.init` to the root `_layout`

* misc(sample): Do not execute Sentry in NodeJS during npx expo export command (#3689)

* feat(expo): Add getDefaultConfig option to getSentryExpoConfig (#3690)

* misc(sample): Do not execute Sentry in NodeJS during npx expo export command

* feat(expo): Add `getDefaultConfig` option to `getSentryExpoConfig`

* misc(sample): Enable expo-router auto instrumentation (#3692)

* misc(sample): Disable Expo Web static routes, export command hangs

* misc(sample): Enable expo-router auto instrumentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants