Skip to content

Sentry.captureException not appearing on Sentry #15786

@dhruvg

Description

@dhruvg

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

7.73.0

Framework Version

No response

Link to Sentry event

[redacted]

Reproduction Example/SDK Setup

Sentry.init({
  dsn: process.env.NODE_ENV === 'production' && SENTRY_SERVER_DSN,
  release: process.env.RELEASE_VERSION,
  environment: process.env.NODE_ENV,
});

Steps to Reproduce

console.log(`Sending to Sentry...`);
Sentry.captureException(error, { extra });

In my logs I see:

Mar 23 14:33:18 ip-172-30-1-243 web[3564377]: [23/03/2025 14:33:18.851] [LOG]    Sending to Sentry...

Expected Result

I expect every log of Sending to Sentry... to have a corresponding error event on my Sentry dashboard.

Actual Result

Hundreds of such errors have been logged so far, but only 4 events have made it to Sentry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions