Skip to content

chore(deps): update dependency @sentry/nextjs to v9 - autoclosed #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 23, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/nextjs (source) ^7.111.0 -> ^9.0.0 age adoption passing confidence

Release Notes

getsentry/sentry-javascript (@​sentry/nextjs)

v9.43.0

Compare Source

  • feat(v9/core): add MCP server instrumentation (#​17196)
  • feat(v9/meta): Unify detection of serverless environments and add Cloud Run (#​17204)
  • fix(v9/node): Add mechanism to fastifyIntegration error handler (#​17211)
  • fix(v9/replay): Fix re-sampled sessions after a click (#​17195)

Bundle size 📦

Path Size
@​sentry/browser 23.24 KB
@​sentry/browser - with treeshaking flags 21.83 KB
@​sentry/browser (incl. Tracing) 38.73 KB
@​sentry/browser (incl. Tracing, Replay) 75.98 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.02 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.57 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.38 KB
@​sentry/browser (incl. Feedback) 39.53 KB
@​sentry/browser (incl. sendFeedback) 27.81 KB
@​sentry/browser (incl. FeedbackAsync) 32.59 KB
@​sentry/react 24.95 KB
@​sentry/react (incl. Tracing) 40.64 KB
@​sentry/vue 27.58 KB
@​sentry/vue (incl. Tracing) 40.48 KB
@​sentry/svelte 23.25 KB
CDN Bundle 24.59 KB
CDN Bundle (incl. Tracing) 38.49 KB
CDN Bundle (incl. Tracing, Replay) 73.66 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 79 KB
CDN Bundle - uncompressed 71.73 KB
CDN Bundle (incl. Tracing) - uncompressed 114.12 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.16 KB
@​sentry/nextjs (client) 42.64 KB
@​sentry/sveltekit (client) 39.14 KB
@​sentry/node 165.2 KB
@​sentry/node - without tracing 97.96 KB
@​sentry/aws-serverless 125.46 KB

v9.42.1

Compare Source

  • fix(v9/astro): Revert Astro v5 storing route data to globalThis (#​17185)
  • fix(v9/cloudflare): Avoid turning DurableObject sync methods into async (#​17187)
  • fix(v9/nextjs): Handle async params in url extraction (#​17176)
  • fix(v9/sveltekit): Align error status filtering and mechanism in handleErrorWithSentry (#​17174)

Bundle size 📦

Path Size
@​sentry/browser 23.24 KB
@​sentry/browser - with treeshaking flags 21.83 KB
@​sentry/browser (incl. Tracing) 38.73 KB
@​sentry/browser (incl. Tracing, Replay) 75.97 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.01 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.56 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.38 KB
@​sentry/browser (incl. Feedback) 39.53 KB
@​sentry/browser (incl. sendFeedback) 27.81 KB
@​sentry/browser (incl. FeedbackAsync) 32.59 KB
@​sentry/react 24.95 KB
@​sentry/react (incl. Tracing) 40.64 KB
@​sentry/vue 27.58 KB
@​sentry/vue (incl. Tracing) 40.48 KB
@​sentry/svelte 23.25 KB
CDN Bundle 24.59 KB
CDN Bundle (incl. Tracing) 38.49 KB
CDN Bundle (incl. Tracing, Replay) 73.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.99 KB
CDN Bundle - uncompressed 71.73 KB
CDN Bundle (incl. Tracing) - uncompressed 114.12 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.59 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.1 KB
@​sentry/nextjs (client) 42.64 KB
@​sentry/sveltekit (client) 39.14 KB
@​sentry/node 165.18 KB
@​sentry/node - without tracing 97.96 KB
@​sentry/aws-serverless 125.46 KB

v9.42.0

Compare Source

  • feat(v9/aws): Detect SDK source for AWS Lambda layer (#​17150)
  • fix(v9/core): Fix OpenAI SDK private field access by binding non-instrumented fns (#​17167)
  • fix(v9/core): Update ai.response.object to gen_ai.response.object (#​17155)
  • fix(v9/nextjs): Update stackframe calls for next v15.5 (#​17161)
Bundle size 📦
Path Size
@​sentry/browser 23.24 KB
@​sentry/browser - with treeshaking flags 21.83 KB
@​sentry/browser (incl. Tracing) 38.73 KB
@​sentry/browser (incl. Tracing, Replay) 75.97 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.01 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.56 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.38 KB
@​sentry/browser (incl. Feedback) 39.53 KB
@​sentry/browser (incl. sendFeedback) 27.81 KB
@​sentry/browser (incl. FeedbackAsync) 32.59 KB
@​sentry/react 24.95 KB
@​sentry/react (incl. Tracing) 40.64 KB
@​sentry/vue 27.58 KB
@​sentry/vue (incl. Tracing) 40.48 KB
@​sentry/svelte 23.25 KB
CDN Bundle 24.59 KB
CDN Bundle (incl. Tracing) 38.49 KB
CDN Bundle (incl. Tracing, Replay) 73.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.99 KB
CDN Bundle - uncompressed 71.73 KB
CDN Bundle (incl. Tracing) - uncompressed 114.12 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.59 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.1 KB
@​sentry/nextjs (client) 42.64 KB
@​sentry/sveltekit (client) 39.14 KB
@​sentry/node 165.18 KB
@​sentry/node - without tracing 97.96 KB
@​sentry/aws-serverless 125.46 KB

v9.41.0

Compare Source

v9.40.0

Compare Source

Important Changes
  • feat(browser): Add debugId sync APIs between web worker and main thread (#​16981)

This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:

  • webWorkerIntegration({worker}) to be used in the main thread
  • registerWebWorker({self}) to be used in the web worker
// main.js
Sentry.init({...})

const worker = new MyWorker(...);

Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));

worker.addEventListener('message', e => {...});
// worker.js
Sentry.registerWebWorker({ self });

self.postMessage(...);
  • feat(core): Deprecate logger in favor of debug (#​17040)

The internal SDK logger export from @sentry/core has been deprecated in favor of the debug export. debug only exposes log, warn, and error methods but is otherwise identical to logger. Note that this deprecation does not affect the logger export from other packages (like @sentry/browser or @sentry/node) which is used for Sentry Logging.

import { logger, debug } from '@​sentry/core';

// before
logger.info('This is an info message');

// after
debug.log('This is an info message');
  • feat(node): Add OpenAI integration (#​17022)

This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:

  • client.chat.completions.create() - For chat-based completions
  • client.responses.create() - For the responses API
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options

Sentry.init({
  dsn: '__DSN__',
  integrations: [
    Sentry.openAIIntegration({
      recordInputs: true, // Force recording prompts
      recordOutputs: true, // Force recording responses
    }),
  ],
});
Other Changes
  • feat(node-core): Expand @opentelemetry/instrumentation range to cover 0.203.0 (#​17043)
  • fix(cloudflare): Ensure errors get captured from durable objects (#​16838)
  • fix(sveltekit): Ensure server errors from streamed responses are sent (#​17044)

Work in this release was contributed by @​0xbad0c0d3 and @​tommy-gilligan. Thank you for your contributions!

Bundle size 📦

Path Size
@​sentry/browser 23.23 KB
@​sentry/browser - with treeshaking flags 21.82 KB
@​sentry/browser (incl. Tracing) 38.73 KB
@​sentry/browser (incl. Tracing, Replay) 75.96 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.56 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.37 KB
@​sentry/browser (incl. Feedback) 39.53 KB
@​sentry/browser (incl. sendFeedback) 27.8 KB
@​sentry/browser (incl. FeedbackAsync) 32.58 KB
@​sentry/react 24.94 KB
@​sentry/react (incl. Tracing) 40.64 KB
@​sentry/vue 27.57 KB
@​sentry/vue (incl. Tracing) 40.48 KB
@​sentry/svelte 23.25 KB
CDN Bundle 24.59 KB
CDN Bundle (incl. Tracing) 38.49 KB
CDN Bundle (incl. Tracing, Replay) 73.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.99 KB
CDN Bundle - uncompressed 71.72 KB
CDN Bundle (incl. Tracing) - uncompressed 114.12 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.58 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.1 KB
@​sentry/nextjs (client) 42.64 KB
@​sentry/sveltekit (client) 39.14 KB
@​sentry/node 165.02 KB
@​sentry/node - without tracing 97.85 KB
@​sentry/aws-serverless 125.35 KB

v9.39.0

Compare Source

Important Changes
  • feat(browser): Add afterStartPageloadSpan hook to improve spanId assignment on web vital spans (#​16893)

This PR adds a new afterStartPageloadSpan lifecycle hook to more robustly assign the correct pageload span ID to web vital spans, replacing the previous unreliable "wait for a tick" approach with a direct callback that fires when the pageload span becomes available.

  • feat(nextjs): Client-side parameterized routes (#​16934)

This PR implements client-side parameterized routes for Next.js by leveraging an injected manifest within the existing app-router instrumentation to automatically parameterize all client-side transactions (e.g. users/123 and users/456 now become become users/:id).

  • feat(node): Drop 401-404 and 3xx status code spans by default (#​16972)

This PR changes the default behavior in the Node SDK to drop HTTP spans with 401-404 and 3xx status codes by default to reduce noise in tracing data.

Other Changes
  • feat(core): Prepend vercel ai attributes with vercel.ai.X (#​16908)
  • feat(nextjs): Add disableSentryWebpackConfig flag (#​17013)
  • feat(nextjs): Build app manifest (#​16851)
  • feat(nextjs): Inject manifest into client for turbopack builds (#​16902)
  • feat(nextjs): Inject manifest into client for webpack builds (#​16857)
  • feat(node-native): Add option to disable event loop blocked detection (#​16919)
  • feat(react-router): Ensure http.server route handling is consistent (#​16986)
  • fix(core): Avoid prolonging idle span when starting standalone span (#​16928)
  • fix(core): Remove side-effect from tracing/errors.ts (#​16888)
  • fix(core): Wrap beforeSendLog in consoleSandbox (#​16968)
  • fix(node-core): Apply correct SDK metadata (#​17014)
  • fix(react-router): Ensure that all browser spans have source=route (#​16984)

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

Bundle size 📦

Path Size
@​sentry/browser 23.32 KB
@​sentry/browser - with treeshaking flags 21.83 KB
@​sentry/browser (incl. Tracing) 38.82 KB
@​sentry/browser (incl. Tracing, Replay) 76.05 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.03 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.65 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.46 KB
@​sentry/browser (incl. Feedback) 39.63 KB
@​sentry/browser (incl. sendFeedback) 27.89 KB
@​sentry/browser (incl. FeedbackAsync) 32.67 KB
@​sentry/react 25.01 KB
@​sentry/react (incl. Tracing) 40.74 KB
@​sentry/vue 27.65 KB
@​sentry/vue (incl. Tracing) 40.56 KB
@​sentry/svelte 23.34 KB
CDN Bundle 24.59 KB
CDN Bundle (incl. Tracing) 38.51 KB
CDN Bundle (incl. Tracing, Replay) 73.67 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 79.01 KB
CDN Bundle - uncompressed 71.82 KB
CDN Bundle (incl. Tracing) - uncompressed 114.25 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.76 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.27 KB
@​sentry/nextjs (client) 42.72 KB
@​sentry/sveltekit (client) 39.25 KB
@​sentry/node 163.76 KB
@​sentry/node - without tracing 97.98 KB
@​sentry/aws-serverless 125.47 KB

v9.38.0

Compare Source

Important Changes

This release publishes the @sentry/node-native SDK.

Other Changes
  • feat(core): Introduce debug to replace logger (#​16906)
  • fix(browser): Guard nextHopProtocol when adding resource spans (#​16900)

Bundle size 📦

Path Size
@​sentry/browser 23.32 KB
@​sentry/browser - with treeshaking flags 21.82 KB
@​sentry/browser (incl. Tracing) 38.82 KB
@​sentry/browser (incl. Tracing, Replay) 76.05 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.12 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.63 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.46 KB
@​sentry/browser (incl. Feedback) 39.61 KB
@​sentry/browser (incl. sendFeedback) 27.89 KB
@​sentry/browser (incl. FeedbackAsync) 32.68 KB
@​sentry/react 25.01 KB
@​sentry/react (incl. Tracing) 40.73 KB
@​sentry/vue 27.65 KB
@​sentry/vue (incl. Tracing) 40.56 KB
@​sentry/svelte 23.34 KB
CDN Bundle 24.57 KB
CDN Bundle (incl. Tracing) 38.49 KB
CDN Bundle (incl. Tracing, Replay) 73.61 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.97 KB
CDN Bundle - uncompressed 71.77 KB
CDN Bundle (incl. Tracing) - uncompressed 114.15 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.16 KB
@​sentry/nextjs (client) 42.32 KB
@​sentry/sveltekit (client) 39.26 KB
@​sentry/node 163.65 KB
@​sentry/node - without tracing 97.95 KB
@​sentry/aws-serverless 125.4 KB

v9.37.0

Compare Source

Important Changes
  • feat(nuxt): Parametrize SSR routes (#​16843)

    When requesting dynamic or catch-all routes in Nuxt, those will now be shown as parameterized routes in Sentry.
    For example, /users/123 will be shown as /users/:userId() in Sentry. This will make it easier to identify patterns and make grouping easier.

Other Changes
  • feat(astro): Deprecate passing runtime config to astro integration (#​16839)
  • feat(browser): Add beforeStartNavigationSpan lifecycle hook (#​16863)
  • feat(browser): Detect redirects when emitting navigation spans (#​16324)
  • feat(cloudflare): Add option to opt out of capturing errors in wrapRequestHandler (#​16852)
  • feat(feedback): Return the eventId into the onSubmitSuccess callback (#​16835)
  • feat(vercel-edge): Do not vendor in all OpenTelemetry dependencies (#​16841)
  • fix(browser): Ensure standalone CLS and LCP spans have traceId of pageload span (#​16864)
  • fix(nextjs): Use value injection loader on instrumentation-client.ts|js (#​16855)
  • fix(sveltekit): Avoid capturing redirect() calls as errors in Cloudflare (#​16853)
  • docs(nextjs): Update deleteSourcemapsAfterUpload jsdoc default value (#​16867)

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

Bundle size 📦

Path Size
@​sentry/browser 23.25 KB
@​sentry/browser - with treeshaking flags 22.01 KB
@​sentry/browser (incl. Tracing) 38.73 KB
@​sentry/browser (incl. Tracing, Replay) 75.97 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 66.14 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.56 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.39 KB
@​sentry/browser (incl. Feedback) 39.54 KB
@​sentry/browser (incl. sendFeedback) 27.82 KB
@​sentry/browser (incl. FeedbackAsync) 32.6 KB
@​sentry/react 24.99 KB
@​sentry/react (incl. Tracing) 40.67 KB
@​sentry/vue 27.6 KB
@​sentry/vue (incl. Tracing) 40.49 KB
@​sentry/svelte 23.27 KB
CDN Bundle 24.77 KB
CDN Bundle (incl. Tracing) 38.7 KB
CDN Bundle (incl. Tracing, Replay) 73.8 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 79.13 KB
CDN Bundle - uncompressed 72.34 KB
CDN Bundle (incl. Tracing) - uncompressed 114.94 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 226.2 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 238.71 KB
@​sentry/nextjs (client) 42.27 KB
@​sentry/sveltekit (client) 39.17 KB
@​sentry/node 163.92 KB
@​sentry/node - without tracing 98.23 KB
@​sentry/aws-serverless 125.68 KB

v9.36.0

Compare Source

Important Changes
  • feat(node-core): Add node-core SDK (#​16745)

This release adds a new SDK @sentry/node-core which ships without any OpenTelemetry instrumententation out of the box. All OpenTelemetry dependencies are peer dependencies and OpenTelemetry has to be set up manually.

Use @sentry/node-core when:

  • You already have OpenTelemetry set up
  • You need custom OpenTelemetry configuration
  • You want minimal dependencies
  • You need fine-grained control over instrumentation

Use @sentry/node when:

  • You want an automatic setup
  • You're new to OpenTelemetry
  • You want sensible defaults
  • You prefer convenience over control
  • feat(node): Deprecate ANR integration (#​16832)

The ANR integration has been deprecated and will be removed in future versions. Use eventLoopBlockIntegration from @sentry/node-native instead.

  • feat(replay): Add _experiments.ignoreMutations option (#​16816)

This replay option allows to configure a selector list of elements to not capture mutations for.

Sentry.replayIntegration({
  _experiments: {
    ignoreMutations: ['.dragging'],
  },
});
Other changes
  • feat(deps): bump @​prisma/instrumentation from 6.10.1 to 6.11.1 (#​16833)
  • feat(nextjs): Add flag for suppressing router transition warning (#​16823)
  • feat(nextjs): Automatically skip middleware requests for tunnel route (#​16812)
  • feat(replay): Export compression worker from @sentry/replay-internal (#​16794)
  • fix(browser): Avoid 4xx response for succesful diagnoseSdkConnectivity request (#​16840)
  • fix(browser): Guard against undefined nextHopProtocol (#​16806)
  • fix(cloudflare): calculate retries not attempts (#​16834)
  • fix(nuxt): Parametrize routes on the server-side (#​16785)
  • fix(vue): Make pageload span handling more reliable (#​16799)

Work in this release was contributed by @​Spice-King and @​stayallive. Thank you for your contributions!

Bundle size 📦

Path Size
@​sentry/browser 23.42 KB
@​sentry/browser - with treeshaking flags 23.2 KB
@​sentry/browser (incl. Tracing) 38.69 KB
@​sentry/browser (incl. Tracing, Replay) 75.99 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.24 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.61 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 92.48 KB
@​sentry/browser (incl. Feedback) 39.79 KB
@​sentry/browser (incl. sendFeedback) 28.02 KB
@​sentry/browser (incl. FeedbackAsync) 32.8 KB
@​sentry/react 25.16 KB
@​sentry/react (incl. Tracing) 40.63 KB
@​sentry/vue 27.71 KB
@​sentry/vue (incl. Tracing) 40.44 KB
@​sentry/svelte 23.45 KB
CDN Bundle 24.9 KB
CDN Bundle (incl. Tracing) 38.7 KB
CDN Bundle (incl. Tracing, Replay) 73.84 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 79.17 KB
CDN Bundle - uncompressed 72.75 KB
CDN Bundle (incl. Tracing) - uncompressed 115.01 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 226.63 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 239.15 KB
@​sentry/nextjs (client) 42.24 KB
@​sentry/sveltekit (client) 39.14 KB
@​sentry/node 158.05 KB
@​sentry/node - without tracing 96.48 KB
@​sentry/aws-serverless 121.7 KB

v9.35.0

Compare Source

  • feat(browser): Add ElementTiming instrumentation and spans (#​16589)
  • feat(browser): Export Context and Contexts types (#​16763)
  • feat(cloudflare): Add user agent to cloudflare spans (#​16793)
  • feat(node): Add eventLoopBlockIntegration (#​16709)
  • feat(node): Export server-side feature flag integration shims (#​16735)
  • feat(node): Update vercel ai integration attributes (#​16721)
  • fix(astro): Handle errors in middlewares better (#​16693)
  • fix(browser): Ensure explicit parentSpan is considered (#​16776)
  • fix(node): Avoid using dynamic require for fastify integration (#​16789)
  • fix(nuxt): Add @sentry/cloudflare as optional peerDependency (#​16782)
  • fix(nuxt): Ensure order of plugins is consistent (#​16798)
  • fix(nestjs): Fix exception handling in @Cron decorated tasks (#​16792)

Work in this release was contributed by @​0xbad0c0d3 and @​alSergey. Thank you for your contributions!

v9.34.0

Compare Source

Important Changes
  • feat(nuxt): Add Cloudflare Nitro plugin (#​15597)

    A Nitro plugin for @sentry/nuxt which initializes Sentry when deployed to Cloudflare (cloudflare-pages preset).

    1. Remove the previous server config file: sentry.server.config.ts

    2. Add a plugin in server/plugins (e.g. server/plugins/sentry-cloudflare-setup.ts)

    3. Add this code in your plugin file

      // server/plugins/sentry-cloudflare-setup.ts (filename does not matter)
      import { sentryCloudflareNitroPlugin } from '@​sentry/nuxt/module/plugins';
      
      export default defineNitroPlugin(
        sentryCloudflareNitroPlugin({
          dsn: 'https://dsn',
          tracesSampleRate: 1.0,
        }),
      );

      or with access to nitroApp:

      // server/plugins/sentry-cloudflare-setup.ts (filename does not matter)
      import { sentryCloudflareNitroPlugin } from '@​sentry/nuxt/module/plugins';
      
      export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => {
        // You can access nitroApp here if needed
        return  ({
          dsn: 'https://dsn',
          tracesSampleRate: 1.0,
        })
      }))
Other Changes
  • feat(browser): Record standalone LCP spans (#​16591)
  • fix(nuxt): Only add OTel alias in dev mode (#​16756)

Bundle size 📦

Path Size
@​sentry/browser 23.42 KB
@​sentry/browser - with treeshaking flags 23.2 KB
@​sentry/browser (incl. Tracing) 38.11 KB
@​sentry/browser (incl. Tracing, Replay) 75.35 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.61 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 80.01 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 91.81 KB
@​sentry/browser (incl. Feedback) 39.79 KB
@​sentry/browser (incl. sendFeedback) 28.02 KB
@​sentry/browser (incl. FeedbackAsync) 32.8 KB
@​sentry/react 25.16 KB
@​sentry/react (incl. Tracing) 40.04 KB
@​sentry/vue 27.69 KB
@​sentry/vue (incl. Tracing) 39.9 KB
@​sentry/svelte 23.45 KB
CDN Bundle 24.9 KB
CDN Bundle (incl. Tracing) 38.19 KB
CDN Bundle (incl. Tracing, Replay) 73.24 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.57 KB
CDN Bundle - uncompressed 72.75 KB
CDN Bundle (incl. Tracing) - uncompressed 113.89 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 225.27 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 237.8 KB
@​sentry/nextjs (client) 41.64 KB
@​sentry/sveltekit (client) 38.56 KB
@​sentry/node 150.68 KB
@​sentry/node - without tracing 96.32 KB
@​sentry/aws-serverless 121.48 KB

v9.33.0

Compare Source

Important Changes
  • feat: Add opt-in vercelAiIntegration to cloudflare & vercel-edge (#​16732)

The vercelAiIntegration is now available as opt-in for the Cloudflare and the Next.js SDK for Vercel Edge.
To use it, add the integration in Sentry.init

Sentry.init({
  tracesSampleRate: 1.0,
  integrations: [Sentry.vercelAIIntegration()],
});

And enable telemetry for Vercel AI calls

const result = await generateText({
  model: openai('gpt-4o'),
  experimental_telemetry: {
    isEnabled: true,
  },
});
  • feat(node): Add postgresjs instrumentation (#​16665)

The Node.js SDK now includes instrumentation for Postgres.js.

  • feat(node): Use diagnostics channel for Fastify v5 error handling (#​16715)

If you're on Fastify v5, you no longer need to call setupFastifyErrorHandler. It is done automatically by the node SDK. Older versions still rely on calling setupFastifyErrorHandler.

Other Changes
  • feat(cloudflare): Allow interop with OpenTelemetry emitted spans (#​16714)
  • feat(cloudflare): Flush after waitUntil (#​16681)
  • fix(nextjs): Remove ai from default server external packages (#​16736)

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

v9.32.0

Compare Source

Important Changes
  • feat(browser): Add CLS sources to span attributes (#​16710)

Enhances CLS (Cumulative Layout Shift) spans by adding attributes detailing the elements that caused layout shifts.

  • feat(cloudflare): Add instrumentWorkflowWithSentry to instrument workflows (#​16672)

We've added support for Cloudflare Workflows, enabling comprehensive tracing for your workflow runs. This integration uses the workflow's instanceId as the Sentry trace_id and for sampling, linking all steps together. You'll now be able to see full traces, including retries with exponential backoff.

  • feat(pino-transport): Add functionality to send logs to sentry (#​16667)

Adds the ability to send logs to Sentry via a pino transport.

Other Changes
  • feat(nextjs): Expose top level buildTime errorHandler option (#​16718)
  • feat(node): update pipeline spans to use agent naming (#​16712)
  • feat(deps): bump @​prisma/instrumentation from 6.9.0 to 6.10.1 (#​16698)
  • fix(sveltekit): Export logger from sveltekit worker (#​16716)
  • fix(google-cloud-serverless): Make CloudEventsContext compatible with CloudEvent (#​16705)
  • fix(nextjs): Stop injecting release value when create release options is set to false (#​16695)
  • fix(node): account for Object. syntax with local variables matching (#​16702)
  • fix(nuxt): Add alias for @opentelemetry/resources (#​16727)

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

Bundle size 📦

Path Size
@​sentry/browser 23.42 KB
@​sentry/browser - with treeshaking flags 23.2 KB
@​sentry/browser (incl. Tracing) 37.93 KB
@​sentry/browser (incl. Tracing, Replay) 75.18 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.42 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 79.83 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 91.63 KB
@​sentry/browser (incl. Feedback) 39.79 KB
@​sentry/browser (incl. sendFeedback) 28.02 KB
@​sentry/browser (incl. FeedbackAsync) 32.8 KB
@​sentry/react 25.16 KB
@​sentry/react (incl. Tracing) 39.88 KB
@​sentry/vue 27.69 KB
@​sentry/vue (incl. Tracing) 39.75 KB
@​sentry/svelte 23.45 KB
CDN Bundle 24.9 KB
CDN Bundle (incl. Tracing) 38 KB
CDN Bundle (incl. Tracing, Replay) 73.08 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 78.41 KB
CDN Bundle - uncompressed 72.75 KB
CDN Bundle (incl. Tracing) - uncompressed

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link

github-actions bot commented Apr 23, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 3.58% 511 / 14259
🔵 Statements 3.58% 511 / 14259
🔵 Functions 38.87% 131 / 337
🔵 Branches 59.81% 189 / 316
File CoverageNo changed files found.
Generated in workflow #1457 for commit 6d1299b by the Vitest Coverage Report Action

Copy link

cloudflare-workers-and-pages bot commented Apr 23, 2025

Deploying sos25-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d1299b
Status: ✅  Deploy successful!
Preview URL: https://be487f44.sos25-client.pages.dev
Branch Preview URL: https://renovate-sentry-nextjs-9-x.sos25-client.pages.dev

View logs

@renovate renovate bot force-pushed the renovate/sentry-nextjs-9.x branch from 3c24b92 to 6d1299b Compare July 24, 2025 14:49
@renovate renovate bot force-pushed the renovate/sentry-nextjs-9.x branch 2 times, most recently from 606f15b to 32a32fc Compare July 28, 2025 16:34
@renovate renovate bot force-pushed the renovate/sentry-nextjs-9.x branch from 32a32fc to 02cbe70 Compare July 29, 2025 17:36
@renovate renovate bot changed the title chore(deps): update dependency @sentry/nextjs to v9 chore(deps): update dependency @sentry/nextjs to v9 - autoclosed Jul 31, 2025
@renovate renovate bot closed this Jul 31, 2025
@renovate renovate bot deleted the renovate/sentry-nextjs-9.x branch July 31, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants