Skip to content

Deduplication is happening even after removing Dedupe from integrations #14690

@jacobgmathew

Description

@jacobgmathew

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.44.0

Framework Version

Next 14.0.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

sentry.client.config.js:

{
  debug: true
  integrations: (integrations) =>
    integrations.filter((integration) => integration.name != 'Dedupe'),
}

Steps to Reproduce

Call let eventId = Sentry.captureException(error) in window.onerror.

Sentry has already captured the event (in the GlobalHandlers integration?).

Expected Result

A second error should be sent to Sentry since Dedupe integration is removed and the eventId returned should correspond to this event.

Actual Result

Second error is not send and eventId cannot be found on Sentry. Sentry prints out the following debug message:

Sentry Logger [log]: Not capturing exception because it's already been captured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: nextjsIssues related to the Sentry Nextjs SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions