Skip to content

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

Compare Source

Important Changes
  • feat(cloudflare): Add honoIntegration with error-filtering function (#​17743)

    This release adds a honoIntegration to @sentry/cloudflare, which exposes a shouldHandleError function that lets you define which errors in onError should be captured. By default, Sentry captures exceptions with error.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 setActiveSpanInBrowser to 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 0 and undefined resource timing values (#​17751)
  • ref(nextjs): Display build compatibility warning for webpack (#​17746)
Internal Changes
  • docs: Reword changelog for google gen ai instrumentation (#​17753)
  • build: Add @typescript-eslint/no-unnecessary-type-assertion rule (#​17728)
  • build: Update TS target to es2020 everywhere (#​17709)
  • chore: Add external contributor to CHANGELOG.md (#​17745)

Work in this release was contributed by @​Karibash. Thank you for your contribution!

v10.14.0

Compare Source

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 WeakRef when storing it on spans (#​17712)
Internal Changes
  • test(node): Avoid using specific port for node-integration-tests (#​17729)
  • test(nuxt): Update Nuxt version and add Nitro $fetch test (#​17713)

v10.13.0

Compare Source

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 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.

Other Changes
  • feat(core): Add logger to core and allow scope to be passed log methods (#​17698)
  • feat(core): Allow to pass onSuccess to handleCallbackErrors (#​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 os context (#​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 this context 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 SyncPromise where 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_metadata assignment 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

📅 Schedule: Branch creation - "before 05:00 on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports

Loading