10.13.0
Important Changes
-
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 thefinalTimeoutoption 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-aipackage to provide insights into your AI operations. -
feat(nextjs): Promote
useRunAfterProductionCompileHookto non-experimental build option (#17721)The
useRunAfterProductionCompileHookoption is no longer experimental and is now a stable build option for Next.js projects. -
feat(nextjs): Use
afterProductionCompilehook for webpack builds (#17655)Next.js projects using webpack can opt-in to use the
useRunAfterProductionCompileHookhook for source map uploads. -
feat(nextjs): Flip default value for
useRunAfterProductionCompileHookfor Turbopack builds (#17722)The
useRunAfterProductionCompileHookoption 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.
Other Changes
- feat(core): Add logger to core and allow scope to be passed log methods (#17698)
- feat(core): Allow to pass
onSuccesstohandleCallbackErrors(#17679) - feat(core): Create template attributes in
consoleLoggingIntegration(#17703) - feat(deps): bump @sentry/cli from 2.52.0 to 2.53.0 (#17652)
- feat(node): Add extra platforms to
oscontext (#17720) - fix(browser): Ensure idle span duration is adjusted when child spans are ignored (#17700)
- fix(core): Ensure builtin stack frames don't affect
thirdPartyErrorFilterIntegration(#17693) - fix(core): Fix client hook edge cases around multiple callbacks (#17706)
- fix(nextjs): Enable fetch span when OTel setup is skipped (#17699)
- fix(node): Fix
thiscontext for vercel AI instrumentation (#17681)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#17725)
- chore: Add link to build and test icon in readme (#17719)
- chore(nuxt): Bump Vite and Rollup plugins (#17671)
- chore(repo): Add changelog entry for
reportPageLoaded(#17724) - ci: Fix lookup of changed E2E test apps (#17707)
- ci(test-matrix): Add logs for
getTestMatrix(#17673) - ref: Avoid some usage of
SyncPromisewhere not needed (#17641) - ref(core): Add debug log when dropping a span via
ignoreSpans(#17692) - ref(core): Avoid looking up anthropic-ai integration options (#17694)
- ref(core): Streamline
module_metadataassignment and cleanup functions (#17696) - ref(remix): Avoid unnecessary error wrapping
HandleDocumentRequestFunction(#17680) - Revert "[Gitflow] Merge master into develop"
Work in this release was contributed by @Olexandr88. Thank you for your contribution!
Bundle size 📦
| 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 |