🐛 Fixed error logging crash when email recipients count if off by 1% (#19485)

no issue

When creating the batches when sending an email, we log a message to
Sentry when there is an unexpected offset of 1% between creating the
email and actually creating the batch recipients. We used a method that
was not mapped in our Sentry proxy.

Location of error: ghost/email-service/lib/BatchSendingService.js:286
This commit is contained in:
Simon Backx 2024-01-15 16:21:11 +01:00 committed by GitHub
parent ed0762fb51
commit 709a0cf3c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ if (sentryConfig && !sentryConfig.disabled) {
}),
tracingHandler: Sentry.Handlers.tracingHandler(),
captureException: Sentry.captureException,
captureMessage: Sentry.captureMessage,
beforeSend: beforeSend,
initQueryTracing: (knex) => {
if (sentryConfig.tracing?.enabled === true) {