Skip to content

JS V7.beta-1 support #487

@umerkk

Description

@umerkk

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,
    });

Screen Shot 2022-05-19 at 1 49 06 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions