Update dependency @sentry/browser to v10.15.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @sentry/browser (source) | dependencies | minor | 10.12.0 -> 10.15.0 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
getsentry/sentry-javascript (@sentry/browser)
v10.15.0
Important Changes
-
feat(cloudflare): Add honoIntegration with error-filtering function (#17743)
This release adds a
honoIntegrationto@sentry/cloudflare, which exposes ashouldHandleErrorfunction that lets you define which errors inonErrorshould be captured. By default, Sentry captures exceptions witherror.status >= 500 || error.status <= 299.The integration is added by default, and it's possible to modify this behavior like this:
integrations: [ honoIntegration({ shouldHandleError: (err) => true; // always capture exceptions in onError }) ] -
feat(node): Add instrumentation for hono handler (#17428)
This MR enhances the Hono integration by adding comprehensive handler instrumentation, error handling capabilities.
-
feat(aws): Enable Lambda extension by default when using the Lamba layer (#17684)
-
feat(browser): Add
setActiveSpanInBrowserto set an active span in the browser (#17714)
This MR adds a feature to the browser SDKs only: Making an inactive span active. We do this to enable use cases where having a span only being active in the callback is not practical.
Other Changes
- fix(browser): Improve handling of
0andundefinedresource timing values (#17751) - ref(nextjs): Display build compatibility warning for webpack (#17746)
Internal Changes
Work in this release was contributed by @Karibash. Thank you for your contribution!
v10.14.0
Important Changes
-
feat(cloudflare,vercel-edge): Add support for Google Gen AI instrumentation (#17723)
The SDK now supports manually instrumenting Google's Generative AI operations in Cloudflare Workers and Vercel Edge Runtime environments, providing insights into your AI operations. You can use
const wrappedClient = Sentry.instrumentGoogleGenAIClient(genAiClient)to get an instrumented client.
Other Changes
- fix(nextjs): Display updated turbopack warnings (#17737)
- ref(core): Wrap isolationscope in
WeakRefwhen storing it on spans (#17712)
Internal Changes
v10.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!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.