Commit f4d496e2 authored by Mitchell Hentges's avatar Mitchell Hentges
Browse files

Bug 1759725: Mach: migrate from hosted Sentry to cloud-managed Sentry r=glob

Update DSN for reporting exceptions to the new Sentry instance, and
update CI job to create releases on the new Sentry as well.

Differential Revision: https://phabricator.services.mozilla.com/D141122
parent 31cdbe04
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -21,8 +21,10 @@ from mozversioncontrol import (
)
from six import string_types

# https://sentry.prod.mozaws.net/operations/mach/
_SENTRY_DSN = "https://8228c9aff64949c2ba4a2154dc515f55@sentry.prod.mozaws.net/525"
# https://sentry.io/organizations/mozilla/projects/mach/
_SENTRY_DSN = (
    "https://5cfe351fb3a24e8d82c751252b48722b@o1069899.ingest.sentry.io/6250014"
)


class ErrorReporter(object):
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ run() {
    revisions=$(curl "$HG_PUSHLOG_URL" | jq -c -r ".pushes[].changesets | @sh" | tr -d \') || return 1
    sentry_api_key=$(curl "http://taskcluster/secrets/v1/secret/$SENTRY_SECRET" | jq -r ".secret.sentryToken") || return 1
    for revision in $revisions; do
        SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=operations sentry-cli --url https://sentry.prod.mozaws.net/ releases --project mach new "hg-rev-$revision" || return 1
        SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=mozilla sentry-cli --url https://sentry.io/ releases --project mach new "hg-rev-$revision" || return 1
    done
}