Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Report uncaught exceptions with sentry.io #740

Merged
merged 5 commits into from
Jun 21, 2023
Merged

Report uncaught exceptions with sentry.io #740

merged 5 commits into from
Jun 21, 2023

Conversation

justinabrahms
Copy link
Contributor

@justinabrahms justinabrahms commented Jun 20, 2023

We still need to upload debug symbols for release builds.

);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which sentry-cli >/dev/null; then\nexport SENTRY_ORG=subconscious\nexport SENTRY_PROJECT=apple-ios\nexport SENTRY_AUTH_TOKEN=cfb08a61febc418bb55ec80ae6f99e2ce34b93d5b179454e9a8b8c240a3bb4d6\nERROR=$(sentry-cli debug-files upload \"$DWARF_DSYM_FOLDER_PATH\" 2>&1 >/dev/null)\nif [ ! $? -eq 0 ]; then\necho \"warning: sentry-cli - $ERROR\"\nfi\nelse\necho \"warning: sentry-cli not installed. download from https://github.com/getsentry/sentry-cli/releases\"\nfi\n";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it okay for this auth token to be publicly checked in? Bearing in mind this repo is fully open-source.

This issue seems to suggest we shouldn't check it in: getsentry/sentry-react-native#1096

Copy link
Collaborator

@bfollington bfollington left a comment

Choose a reason for hiding this comment

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

I want to be sure that we're handling the auth token appropriately before merging.

@justinabrahms
Copy link
Contributor Author

That token has been revoked. Good catch. I'll work w/ you in DM to figure out how to pass in relevant secrets.

@bfollington bfollington self-requested a review June 21, 2023 23:52
Copy link
Collaborator

@bfollington bfollington left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for tackling the .env, that was well overdue.

@bfollington bfollington merged commit 54e6f2f into main Jun 21, 2023
bfollington added a commit that referenced this pull request Jun 24, 2023
Extends #740 

Use `OSLogEnumerator` to pin the app logs to the reported error. This
probably isn't super efficient but given the nature of reporting a
crash, that's probably ok.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants