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

[Wallet] Upgrade sentry/react-native to 2.1.0 #6280

Merged
merged 14 commits into from
Dec 19, 2020

Conversation

etuleu
Copy link
Contributor

@etuleu etuleu commented Dec 17, 2020

Description

Upgrade sentry/react-native from 1.7.1 to 2.1.0.

This is part of our effort to improve debugging capabilities. With this update we hope to see better stack traces in some native crashes where the entire trace is missing.

I went through the release notes for each of the releases since 1.7.1 to make sure we capture any breaking changes and to see what has been fixed and what to watch out for.

One thing that has been added is release health which we should discuss whether we want on or off: https://blog.sentry.io/2020/05/19/crash-free-sessions-carefree-users-with-release-health

What's new in sentry:

Other changes

Set sentry automatic session tracking explicitly off because the default has changed in 2.0. Not sure yet if we want that on so I set it off to be explicit.

Tested

Manually causing crashes in JS:
throw new Error("My first Sentry error!");
and in native:
Sentry.nativeCrash();

Related issues

Backwards compatibility

Yes.

@etuleu etuleu added the wallet label Dec 18, 2020
@etuleu etuleu marked this pull request as ready for review December 18, 2020 03:10
Copy link
Contributor

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

Looking great! 👍

packages/mobile/src/sentry/Sentry.ts Outdated Show resolved Hide resolved
jeanregisser and others added 3 commits December 18, 2020 12:07
@apollo/react-testing ended up being hoisted in the root node_modules
but the other @apollo libs used by react-apollo were still in packages/mobile/node_modules
so the created context didn't match and failed in `TransactionsList.test.tsx`
with the following error:
```
Invariant Violation: Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.
```
Co-authored-by: Jean Regisser <jean.regisser@gmail.com>
@etuleu etuleu added the automerge Have PR merge automatically when checks pass label Dec 18, 2020
@mergify mergify bot merged commit c64df6f into master Dec 19, 2020
@mergify mergify bot deleted the etuleu/upgrade-sentry-2.1.0 branch December 19, 2020 04:20
@Lss-Ankit
Copy link

@etuleu can you please provide more details if we need to verify this task from our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass wallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Wallet] Upgrade sentry sdk SDK from version 1.7.1 to version 2.1.0
3 participants