Skip to content

Sentry Integration Causing Infinite Restarts in Next.js Production Under High Traffic #14354

@lucian55

Description

@lucian55

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

Framework Version

next 13.4.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

In the Next.js React project, I integrated Sentry in the production environment using the following method. When there is a high volume of traffic, it causes the Next.js service to restart indefinitely.

const { withSentryConfig } = require("@sentry/nextjs");

module.exports = withSentryConfig(module.exports, {
  // For all available options, see:
  // https://github.com/getsentry/sentry-webpack-plugin#options

  org: "xxx",
  project: "xxxx",
  widenClientFileUpload: true,

  reactComponentAnnotation: {
    enabled: true,
  },
  hideSourceMaps: true,

  disableLogger: true,

  automaticVercelMonitors: true,
});

Expected Result

Normal use, no errors. (已编辑)

Actual Result

the Next.js service to restart indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions