Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
9.12.0
Framework Version
Remix 2.16.5
Link to Sentry event
No response
Reproduction Example/SDK Setup
import * as Sentry from "@sentry/remix";
const { SENTRY_DSN, ENVIRONMENT, NODE_ENV } = process.env;
if (NODE_ENV === "production") {
console.info("Initializing Sentry");
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: 0.3,
profilesSampleRate: 0.1,
autoInstrumentRemix: true,
environment: ENVIRONMENT,
sendDefaultPii: true,
integrations: [nodeProfilingIntegration(), Sentry.prismaIntegration()],
beforeSendTransaction: (transaction) => {
if (transaction.request?.url.endsWith("js.map")) return null;
return transaction;
},
ignoreTransactions: ["healthcheck"],
});
}
Environment
Node.js: v20.19.0
Sentry Remix SDK version: 9.12.0
Using ZenStack enhanced Prisma client
Using pnpm package manager
Steps to Reproduce
- Set up a Remix application with Sentry integration
- Configure Sentry server instrumentation in instrument.server.mjs
- Run the application under load or for an extended period
- Observe that occasionally the server crashes with the following error:
/myapp/node_modules/.pnpm/@sentry+remix@9.12.0_@opentelemetry+context-async-hooks@1.30.1_@opentelemetry+api@1.9.0__@ope_uinifbjcggxueklhweoo2zo2yi/node_modules/@sentry/remix/build/cjs/server/instrumentServer.js:167
return async function ( args) {
^
RangeError: Maximum call stack size exceeded
Expected Result
No crash.
Actual Result
Crash.
Metadata
Metadata
Assignees
Type
Projects
Status
No status