-
Notifications
You must be signed in to change notification settings - Fork 10
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
Set up Sentry #103
Set up Sentry #103
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Currently it seems the lint job is failing. Also can we confirm that sentry and |
@@ -42,6 +43,7 @@ class FirestoreController { | |||
.then((res) => res.json()) |
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.
I think it's a good idea to capture an exception with the publicKey
and email / firebase user id when {indexer}/accounts
returns an empty array here and other relevant places we call it wdyt?
src/index.tsx
Outdated
'https://mpc-recovery-leader-mainnet-tmp-cg7nolnlpa-ue.a.run.app', | ||
'https://api.kitwallet.app', | ||
// TESTNET | ||
'https://mpc-recovery-leader-dev-7tk2cmmtcq-ue.a.run.app', | ||
'https://testnet-api.kitwallet.app' |
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.
Nice but should we get these from env?
webpack.config.js
Outdated
FIREBASE_MEASUREMENT_ID_TESTNET: 'G-HF2NBGE60S' | ||
}) | ||
], | ||
plugins: [new HtmlWebpackPlugin({ |
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.
Can this be prettified slightly similar to before the change?
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.
LGTM
This PR contains initial implementation of Sentry, FE error monitoring tool.
During the implementation, I have created manual throw error on this test scenario to make sure errors are being reported back to sentry.
Things have been tested:
Things have not been handled:
Since this PR contains implementation to upload sourcemap to sentry, we need to update github actions to add
SENTRY_AUTH_TOKEN
to pipeline. This needs to be done before we merge this PR. Please contact me for retrieval of actual token.Lastly, current setup is currently implemented via sentry account of my own. In the future, we can easily swapped into Pagoda sentry account.