Open
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/nextjs
SDK Version
9.13.0
Framework Version
Next 15.3.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
As documented;
instrumentation-client.ts
import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: process.env.NC_SENTRY_DSN,
});
(real config has more integrations enabled, but this basically empty config already has at least 100ms of initialization time which causes the warning)
Steps to Reproduce
- Added
Sentry.init
as documented in theinstrumentation-client.ts
file - Get warning on every page load in development mode that instrumentation init takes 100-300ms which, according to Next.js, can cause lag if it takes longer than 16ms (1 Frame @ 60fps)
Expected Result
Fast initialization without impacting user experience
Actual Result
[Client Instrumentation Hook] Slow execution detected: 350ms (Note: Code download overhead is not included in this measurement)
Metadata
Metadata
Assignees
Type
Projects
Status
No status