Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2920, fix sending errors to Sentry (#2952)
Browse files Browse the repository at this point in the history
This changes the DSNs to the private DSNs in new Sentry projects
Discussion of using a private DSN in https://bugzilla.mozilla.org/show_bug.cgi?id=1369162
WebExtension background pages do not have a referrer or origin on their requests, therefore we need authenticated endpoints
  • Loading branch information
ianb authored and jaredhirsch committed Jun 1, 2017
1 parent 6096494 commit f94bdfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addon/webextension/background/senderror.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ this.senderror = (function() {
return;
}
if (!Raven.isSetup()) {
Raven.config(dsn).install();
Raven.config(dsn, {allowSecretKey: true}).install();
}
let exception = new Error(e.message);
exception.stack = e.multilineStack || e.stack || undefined;
Expand Down
6 changes: 3 additions & 3 deletions bin/export_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

SENTRY_ENDPOINTS = {
"local": "",
"dev": "https://d58fc53f92cd47bba7266ad6444514d8@sentry.prod.mozaws.net/74",
"stage": "https://3d2efd7bad9e4e359014cb4e69b8eaec@sentry.prod.mozaws.net/140",
"prod": "https://97d8afa496f94764ae255e739b147f4b@sentry.prod.mozaws.net/139"
"dev": "https://04cf410658e0462b98d7c1142f8e760d:6cffd7aa497d4087bfb9e770bbc47d1d@sentry.prod.mozaws.net/222",
"stage": "https://b1119a227a0749bba6b24c97db288ca2:69455050b0a143b3831729fc790de713@sentry.prod.mozaws.net/223",
"prod": "https://904ccdd4866247c092ae8fc1a4764a63:940d44bdc71d4daea133c19080ccd38d@sentry.prod.mozaws.net/224"
}

FILES_TO_NOT_REMOVE = [
Expand Down
6 changes: 3 additions & 3 deletions bin/release-version
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -e

dev_sentry="https://d58fc53f92cd47bba7266ad6444514d8@sentry.prod.mozaws.net/74"
stage_sentry="https://3d2efd7bad9e4e359014cb4e69b8eaec@sentry.prod.mozaws.net/140"
prod_sentry="https://97d8afa496f94764ae255e739b147f4b@sentry.prod.mozaws.net/139"
dev_sentry="https://04cf410658e0462b98d7c1142f8e760d:6cffd7aa497d4087bfb9e770bbc47d1d@sentry.prod.mozaws.net/222"
stage_sentry="https://b1119a227a0749bba6b24c97db288ca2:69455050b0a143b3831729fc790de713@sentry.prod.mozaws.net/223"
prod_sentry="https://904ccdd4866247c092ae8fc1a4764a63:940d44bdc71d4daea133c19080ccd38d@sentry.prod.mozaws.net/224"

cd "$(dirname ${BASH_SOURCE[0]})/.."

Expand Down

0 comments on commit f94bdfd

Please sign in to comment.