Enabled Sentry's ExtraErrorData integration

refs https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/extraerrordata/
ref https://linear.app/tryghost/issue/SLO-92/enable-extra-sentry-integrations

- this enables the ExtraErrorData integration, which should help us
  capture more of the properties of the errors we're producing, which
  _may_ help with debugging
This commit is contained in:
Daniel Lockyer 2024-05-02 13:36:27 +02:00 committed by Daniel Lockyer
parent 6c7b230efe
commit 5b28dc9246

View File

@ -91,12 +91,15 @@ if (sentryConfig && !sentryConfig.disabled) {
environment = config.get('env');
}
/** @type {import('@sentry/node').NodeOptions} */
const sentryInitConfig = {
dsn: sentryConfig.dsn,
release: 'ghost@' + version,
environment: environment,
maxValueLength: 1000,
integrations: [],
integrations: [
Sentry.extraErrorDataIntegration()
],
beforeSend,
beforeSendTransaction
};