getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.68k stars 1.49k forks source link

feat(nextjs): Mute webpack warnings about critical dependencies inside `@opentelemetry/instrumentation` #11810

Closed lforst closed 3 weeks ago

lforst commented 3 weeks ago

Currently, Next.js (Webpack) prints an annoying warning about an import statement that cannot be statically analyzed inside @opentelemetry/instrumentation. This is annoying (but harmless) and spams the logs a lot so we should probably ignore the warning.

More info on the issue in OTEL: https://github.com/open-telemetry/opentelemetry-js/issues/4173

Hopefully this will be fixed in https://github.com/open-telemetry/opentelemetry-js/pull/4660 soon.

github-actions[bot] commented 3 weeks ago

size-limit report 📦

Path Size
@sentry/browser 21.64 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing) 32.68 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay) 68.03 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.43 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.07 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.28 KB (-0.01% 🔽)
@sentry/browser (incl. Feedback) 37.78 KB (-0.01% 🔽)
@sentry/browser (incl. sendFeedback) 26.43 KB (-0.01% 🔽)
@sentry/browser (incl. FeedbackAsync) 30.93 KB (0%)
@sentry/react 24.33 KB (-0.02% 🔽)
@sentry/react (incl. Tracing) 35.64 KB (-0.02% 🔽)
@sentry/vue 25.47 KB (-0.01% 🔽)
@sentry/vue (incl. Tracing) 34.47 KB (-0.02% 🔽)
@sentry/svelte 21.77 KB (-0.04% 🔽)
CDN Bundle 23.95 KB (-0.01% 🔽)
CDN Bundle (incl. Tracing) 33.98 KB (+0.02% 🔺)
CDN Bundle (incl. Tracing, Replay) 67.67 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 83.55 KB (+0.01% 🔺)
CDN Bundle - uncompressed 70.58 KB (+0.03% 🔺)
CDN Bundle (incl. Tracing) - uncompressed 100.94 KB (+0.02% 🔺)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.55 KB (+0.01% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 256.94 KB (+0.01% 🔺)
@sentry/nextjs (client) 34.86 KB (0%)
@sentry/sveltekit (client) 33.24 KB (-0.01% 🔽)
@sentry/node 138.47 KB (-0.01% 🔽)