-
-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
Hi
Is current Electron SDK compatiable with the new Sentry JS SDK V7 (in beta)?
I am trying to use V7-beta.1 sdk (Node, React, Integrations, types) with Electron SDK.
However, it seems like the way integrations used to be added (as a FN) is throwing a type mismatch error which I cannot figure out.
Looks like the signature on @sentry/integrations are not compatible with what Electron SDK init function requires.
import * as Sentry from '@sentry/electron';
import { CaptureConsole, ExtraErrorData, Offline, Transaction } from '@sentry/integrations';
import { Integration } from '@sentry/types';
Sentry.init({
...Config.APM.CLIENT_CONFIG,
release: `${systemInfo.hubVersion()}`,
integrations: (integrations) => [
...integrations,
new CaptureConsole({ levels: ['error'] }),
new ExtraErrorData({ depth: 3 }),
new Offline({ maxStoredEvents: 20 }),
new Transaction(),
],
beforeSend: this.beforeSendHandler,
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
