feat(browser): Add option to explicitly end pageload span via reportPageLoaded() (#17697)
With this release you can take manual control of ending the pageload span. Usually this span is ended automatically by the SDK, based on a period of inactivity after the initial page was loaded in the browser. If you want full control over the pageload duration, you can tell Sentry, when your page was fully loaded:
Sentry.init({
//...
integrations: [
// 1. Enable manual pageload reporting
Sentry.browserTracingIntegration({ enableReportPageLoaded: true }),
],
});
// 2. Whenever you decide the page is loaded, call:
Sentry.reportPageLoaded();
Note that if Sentry.reportPageLoaded() is not called within 30 seconds of the initial pageload (or whatever value the finalTimeout option is set to), the pageload span will be ended automatically.
feat(core,node): Add instrumentation for GoogleGenerativeAI (#17625)
The SDK now automatically instruments the @google/generative-ai package to provide insights into your AI operations.
feat(nextjs): Promote useRunAfterProductionCompileHook to non-experimental build option (#17721)
The useRunAfterProductionCompileHook option is no longer experimental and is now a stable build option for Next.js projects.
feat(nextjs): Use afterProductionCompile hook for webpack builds (#17655)
Next.js projects using webpack can opt-in to use the useRunAfterProductionCompileHook hook for source map uploads.
feat(nextjs): Flip default value for useRunAfterProductionCompileHook for Turbopack builds (#17722)
The useRunAfterProductionCompileHook option is now enabled by default for Turbopack builds, enabling automated source map uploads.
feat(node): Do not drop 300 and 304 status codes by default (#17686)
HTTP transactions with 300 and 304 status codes are now captured by default, providing better visibility into redirect and caching behavior.
onSuccess to handleCallbackErrors (#17679)consoleLoggingIntegration (#17703)os context (#17720)thirdPartyErrorFilterIntegration (#17693)this context for vercel AI instrumentation (#17681)reportPageLoaded (#17724)getTestMatrix (#17673)SyncPromise where not needed (#17641)ignoreSpans (#17692)module_metadata assignment and cleanup functions (#17696)HandleDocumentRequestFunction (#17680)Work in this release was contributed by @Olexandr88. Thank you for your contribution!
| Path | Size |
|---|---|
| @sentry/browser | 23.66 KB |
| @sentry/browser - with treeshaking flags | 22.21 KB |
| @sentry/browser (incl. Tracing) | 39.39 KB |
| @sentry/browser (incl. Tracing, Replay) | 76.88 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.78 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 81.44 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 93.35 KB |
| @sentry/browser (incl. Feedback) | 39.99 KB |
| @sentry/browser (incl. sendFeedback) | 28.2 KB |
| @sentry/browser (incl. FeedbackAsync) | 33 KB |
| @sentry/react | 25.33 KB |
| @sentry/react (incl. Tracing) | 41.32 KB |
| @sentry/vue | 28.05 KB |
| @sentry/vue (incl. Tracing) | 41.15 KB |
| @sentry/svelte | 23.68 KB |
| CDN Bundle | 25.14 KB |
| CDN Bundle (incl. Tracing) | 39.22 KB |
| CDN Bundle (incl. Tracing, Replay) | 74.59 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 79.96 KB |
| CDN Bundle - uncompressed | 73.46 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 116.1 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 228.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 240.99 KB |
| @sentry/nextjs (client) | 43.3 KB |
| @sentry/sveltekit (client) | 39.81 KB |
| @sentry/node-core | 48.81 KB |
| @sentry/node | 148.62 KB |
| @sentry/node - without tracing | 89.73 KB |
| @sentry/aws-serverless | 102.86 KB |
Fetched March 31, 2026