Versions + Platform
Description
As in title - if you supply a beforeSend function then the default SentryMinidump integration will not correctly fill in the scope on the event when sending a crash report.
This may be intentional, but I couldn't find docs stating this. The problematic line is this one - https://github.com/getsentry/sentry-electron/blob/master/src/main/integrations/sentry-minidump/index.ts#L234
which instead of giving the beforeSend function the newEvent that has been filled with scope, it passes the original event.
Fixing should be trivially to pass newEvent to beforeSend (we have patched this in locally and it seems to be working in the way we expect).
Versions + Platform
@sentry/electron@v3.0.7electron@v16.0.10WindowsDescription
As in title - if you supply a
beforeSendfunction then the default SentryMinidump integration will not correctly fill in the scope on the event when sending a crash report.This may be intentional, but I couldn't find docs stating this. The problematic line is this one - https://github.com/getsentry/sentry-electron/blob/master/src/main/integrations/sentry-minidump/index.ts#L234
which instead of giving the
beforeSendfunction thenewEventthat has been filled with scope, it passes the originalevent.Fixing should be trivially to pass
newEventtobeforeSend(we have patched this in locally and it seems to be working in the way we expect).