diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index ae5dc5a89d5..44b789c622c 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -175,7 +175,7 @@ runs: # ensure we sign the artifacts NODE_ENV: production # analytics tokens - SENTRY_TOKEN: https://739bbcfc0ba4481481138d3fc831136d@o95242.ingest.sentry.io/4504451487301632 + SENTRY_TOKEN: https://739bbcfc0ba4481481138d3fc831136d@o95242.ingest.us.sentry.io/4504451487301632 AMPLITUDE_TOKEN: 'balena-etcher' # Apple notarization XCODE_APP_LOADER_EMAIL: ${{ fromJSON(inputs.secrets).XCODE_APP_LOADER_EMAIL }} diff --git a/lib/gui/app/modules/analytics.ts b/lib/gui/app/modules/analytics.ts index 264a8c4b34c..4ccc4d670eb 100644 --- a/lib/gui/app/modules/analytics.ts +++ b/lib/gui/app/modules/analytics.ts @@ -122,7 +122,11 @@ let analyticsClient: Client; export const initAnalytics = once(() => { const dsn = settings.getSync('analyticsSentryToken') || process.env.SENTRY_TOKEN; - SentryRenderer.init({ dsn, beforeSend: anonymizeSentryData }); + SentryRenderer.init({ + dsn, + beforeSend: anonymizeSentryData, + debug: process.env.ETCHER_SENTRY_DEBUG === 'true', + }); const projectName = settings.getSync('analyticsAmplitudeToken') || process.env.AMPLITUDE_TOKEN; diff --git a/lib/gui/etcher.ts b/lib/gui/etcher.ts index 6c5dc7b5055..6dc3fe77485 100644 --- a/lib/gui/etcher.ts +++ b/lib/gui/etcher.ts @@ -121,6 +121,7 @@ const initSentryMain = once(() => { SentryMain.init({ dsn, beforeSend: anonymizeSentryData, + debug: process.env.ETCHER_SENTRY_DEBUG === 'true', }); console.log(SentryMain.getCurrentScope()); });