aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-01-23 08:05:34 +0800
committerGitHub <noreply@github.com>2018-01-23 08:05:34 +0800
commitf26933493c5a1f68aff777a17c02ec90a5245edf (patch)
treed82cd9180a0b1e5de97d5fbdf4281f120463bbb8
parent4b9c166a6452110b9dc766e7fea5112a9c89c260 (diff)
parentb1c34639f8d66523815c6e4c8ad921eb09c99322 (diff)
downloadtangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar.gz
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar.bz2
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar.lz
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar.xz
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.tar.zst
tangerine-wallet-browser-f26933493c5a1f68aff777a17c02ec90a5245edf.zip
Merge branch 'master' into Version-3.13.7
-rw-r--r--CHANGELOG.md3
-rw-r--r--app/scripts/background.js12
-rw-r--r--app/scripts/setupRaven.js2
3 files changed, 15 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 05f455245..905f1f98f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,8 @@
## 3.13.7 2018-1-22
- Add ability to bypass gas estimation loading indicator.
-- Re-add changes from 3.13.4
+- Forward failed transactions to Sentry error reporting service
+- Re-add changes from 3.13.5
## 3.13.6 2017-1-18
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 8c1252d3e..0471cee3b 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -27,7 +27,7 @@ global.METAMASK_NOTIFIER = notificationManager
// setup sentry error reporting
const release = platform.getVersion()
-setupRaven({ release })
+const raven = setupRaven({ release })
let popupIsOpen = false
@@ -77,6 +77,16 @@ function setupController (initState) {
})
global.metamaskController = controller
+ // report failed transactions to Sentry
+ controller.txController.on(`tx:status-update`, (txId, status) => {
+ if (status !== 'failed') return
+ const txMeta = controller.txController.txStateManager.getTx(txId)
+ raven.captureMessage('Transaction Failed', {
+ // "extra" key is required by Sentry
+ extra: txMeta,
+ })
+ })
+
// setup state persistence
pump(
asStream(controller.store),
diff --git a/app/scripts/setupRaven.js b/app/scripts/setupRaven.js
index 4888c85fe..7beffeff9 100644
--- a/app/scripts/setupRaven.js
+++ b/app/scripts/setupRaven.js
@@ -21,4 +21,6 @@ function setupRaven(opts) {
Raven.config(ravenTarget, {
release,
}).install()
+
+ return Raven
}