diff --git a/bin/station.js b/bin/station.js index ab6825fd..5c878542 100755 --- a/bin/station.js +++ b/bin/station.js @@ -10,7 +10,7 @@ import * as paths from '../lib/paths.js' const pkg = JSON.parse(await fs.readFile(paths.packageJSON, 'utf8')) Sentry.init({ - dsn: 'https://6c96a5c2ffa5448d9ec8ddda90012bc9@o1408530.ingest.sentry.io/4504792315199488', + dsn: 'https://0269983069b7f77f9aab04686c3912e4@o1408530.ingest.us.sentry.io/4504792315199488', release: pkg.version, environment: pkg.sentryEnvironment, tracesSampleRate: 0.1, diff --git a/lib/zinnia.js b/lib/zinnia.js index 03adfea4..1d85122f 100644 --- a/lib/zinnia.js +++ b/lib/zinnia.js @@ -53,6 +53,10 @@ const maybeReportErrorToSentry = (/** @type {unknown} */ err) => { /** @type {Parameters[1]} */ const hint = { extra: {} } if (typeof err === 'object') { + if ('reportedToSentry' in err && err.reportedToSentry === true) { + return + } + Object.assign(err, { reportedToSentry: true }) if ('details' in err && typeof err.details === 'string') { // Quoting from https://develop.sentry.dev/sdk/data-handling/ // > Messages are limited to 8192 characters.