Skip to content

chore(deps): update JavaScript SDK to v10.4.0 #4615

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 4, 2025

Bumps scripts/update-javascript.sh from 8.55.0 to 10.4.0.

Auto-generated by a dependency updater.

Changelog

10.4.0

Important Changes

  • fix(browser): Ensure IP address is only inferred by Relay if sendDefaultPii is true

This release includes a fix for a behaviour change
that was originally introduced with v9 of the SDK: User IP Addresses should only be added to Sentry events automatically,
if sendDefaultPii was set to true.

However, the change in v9 required further internal adjustment, which should have been included in v10 of the SDK.
Unfortunately, the change did not make it into the initial v10 version but is now applied with 10.4.0.
There is no API breakage involved and hence it is safe to update.
However, after updating the SDK, events (errors, traces, replays, etc.) sent from the browser, will only include
user IP addresses, if you set sendDefaultPii: true in your Sentry.init options.

We apologize for any inconvenience caused!

  • feat(node): Add ignoreStaticAssets (#17370)

This release adds a new option to httpIntegration to ignore requests for static assets (e.g. favicon.xml or robots.txt). The option defaults to true, meaning that going forward, such requests will not be traced by default. You can still enable tracing for these requests by setting the option to false:

Sentry.init({
  integrations: [
    Sentry.httpIntegration({
      // defaults to true, set to false to enable traces for static assets
      ignoreStaticAssets: false,
    }),
  ],
});

Other Changes

  • fix(nuxt): Do not drop parametrized routes (#17357)
Internal Changes
  • ref(node): Split up incoming & outgoing http handling (#17358)
  • test(node): Enable additionalDependencies in integration runner (#17361)

10.3.0

  • feat(core): MCP Server - Capture prompt results from prompt function calls (#17284)
  • feat(bun): Export skipOpenTelemetrySetup option (#17349)
  • feat(sveltekit): Streamline build logs (#17306)
  • fix(browser): Handle data urls in errors caught by globalHandlersIntegration (#17216)
  • fix(browser): Improve navigation vs. redirect detection (#17275)
  • fix(react-router): Ensure source map upload fails silently if Sentry CLI fails (#17081)
  • fix(react): Add support for React Router sub-routes from handle (#17277)

10.2.0

Important Changes

  • feat(core): Add ignoreSpans option (#17078)

This release adds a new top-level Sentry.init option, ignoreSpans, that can be used as follows:

Sentry.init({
  ignoreSpans: [
    'partial match', // string matching on the span name
    /regex/, // regex matching on the span name
    {
      name: 'span name',
      op: /http.client/,
    },
  ],
});

Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible.

  • feat(cloudflare,vercel-edge): Add support for OpenAI instrumentation (#17338)

Adds support for OpenAI manual instrumentation in sentry/cloudflare and sentry/vercel-edge.

To instrument the OpenAI client, wrap it with Sentry.instrumentOpenAiClient and set recording settings.

import * as Sentry from 'sentry/cloudflare';
import OpenAI from 'openai';

const openai = new OpenAI();
const client = Sentry.instrumentOpenAiClient(openai, { recordInputs: true, recordOutputs: true });

// use the wrapped client
  • ref(aws): Remove manual span creation (#17310)

The startTrace option is deprecated and will be removed in a future major version. If you want to disable tracing, set SENTRY_TRACES_SAMPLE_RATE to 0.0. instead. As of today, the flag does not affect traces anymore.

Other Changes

  • feat(astro): Streamline build logs (#17301)
  • feat(browser): Handles data URIs in chrome stack frames (#17292)
  • feat(core): Accumulate tokens for gen_ai.invoke_agent spans from child LLM calls (#17281)
  • feat(deps): Bump prisma/instrumentation from 6.12.0 to 6.13.0 (#17315)
  • feat(deps): Bump sentry/cli from 2.50.0 to 2.50.2 (#17316)
  • feat(deps): Bump sentry/rollup-plugin from 4.0.0 to 4.0.2 (#17317)
  • feat(deps): Bump sentry/webpack-plugin from 4.0.0 to 4.0.2 (#17314)
  • feat(nuxt): Do not inject trace meta-tags on cached HTML pages (#17305)
  • feat(nuxt): Streamline build logs (#17308)
  • feat(react-router): Add support for Hydrogen with RR7 (#17145)
  • feat(react-router): Streamline build logs (#17303)
  • feat(solidstart): Streamline build logs (#17304)
  • fix(nestjs): Add missing sentry.origin span attribute to SentryTraced decorator (#17318)
  • fix(node): Assign default export of openai to the instrumented fn (#17320)
  • fix(replay): Call sendBufferedReplayOrFlush when opening/sending feedback (#17236)

10.1.0

  • feat(nuxt): Align build-time options to follow bundler plugins structure (#17255)
  • fix(browser-utils): Ensure web vital client hooks unsubscribe correctly (#17272)
  • fix(browser): Ensure request from diagnoseSdkConnectivity doesn't create span (#17280)

10.0.0

Version 10.0.0 marks a release of the Sentry JavaScript SDKs that contains breaking changes. The goal of this release is to primarily upgrade the underlying OpenTelemetry dependencies to v2 with minimal breaking changes.

How To Upgrade

Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 9 to version 10. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10/

A comprehensive migration guide outlining all changes can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md

Breaking Changes

  • feat!: Bump to OpenTelemetry v2 (#16872)
  • feat(browser)!: Remove FID web vital collection (#17076)
  • feat(core)!: Remove BaseClient (#17071)
  • feat(core)!: Remove enableLogs and beforeSendLog experimental options (#17063)
  • feat(core)!: Remove hasTracingEnabled (#17072)
  • feat(core)!: Remove deprecated logger (#17061)
  • feat(replay)!: Promote _experiments.autoFlushOnFeedback option as default (#17220)
  • chore(deps)!: Bump bundler plugins to v4 (#17089)

Other Changes

  • feat(astro): Implement Request Route Parametrization for Astro 5 (#17105)
  • feat(astro): Parametrize routes on client-side (#17133)
  • feat(aws): Add SentryNodeServerlessSDKv10 v10 AWS Lambda Layer (#17069)
  • feat(aws): Create unified lambda layer for ESM and CJS (#17012)
  • feat(aws): Detect SDK source for AWS Lambda layer (#17128)
  • feat(core): Add missing openai tool calls attributes (#17226)
  • feat(core): Add shared flushIfServerless function (#17177)
  • feat(core): Implement strictTraceContinuation (#16313)
  • feat(core): MCP server instrumentation without breaking Miniflare (#16817)
  • feat(deps): bump prisma/instrumentation from 6.11.1 to 6.12.0 (#17117)
  • feat(meta): Unify detection of serverless environments and add Cloud Run (#17168)
  • feat(nestjs): Switch to OTel core instrumentation (#17068)
  • feat(node-native): Upgrade sentry-internal/node-native-stacktrace to 0.2.2 (#17207)
  • feat(node): Add shouldHandleError option to fastifyIntegration (#16845)
  • feat(node): Add firebase integration (#16719)
  • feat(node): Instrument stream responses for openai (#17110)
  • feat(react-router): Add createSentryHandleError (#17235)
  • feat(react-router): Automatically flush on serverless for loaders/actions (#17234)
  • feat(react-router): Automatically flush on Vercel for request handlers (#17232)
  • fix(astro): Construct parametrized route during runtime (#17190)
  • fix(aws): Add layer build output to nx cache (#17148)
  • fix(aws): Fix path to packages directory (#17112)
  • fix(aws): Resolve all Sentry packages to local versions in layer build (#17106)
  • fix(aws): Use file link in dependency version (#17111)
  • fix(cloudflare): Allow non uuid workflow instance IDs (#17121)
  • fix(cloudflare): Avoid turning DurableObject sync methods into async (#17184)
  • fix(core): Fix OpenAI SDK private field access by binding non-instrumented fns (#17163)
  • fix(core): Fix operation name for openai responses API (#17206)
  • fix(core): Update ai.response.object to gen_ai.response.object (#17153)
  • fix(nextjs): Flush in route handlers (#17223)
  • fix(nextjs): Handle async params in url extraction (#17162)
  • fix(nextjs): Update stackframe calls for next v15.5 (#17156)
  • fix(node): Add mechanism to fastifyIntegration error handler (#17208)
  • fix(node): Ensure tool errors for vercelAiIntegration have correct trace connected (#17132)
  • fix(node): Fix exports for openai instrumentation (#17238)
  • fix(node): Handle stack traces with data URI filenames (#17218)
  • fix(react): Memoize wrapped component to prevent rerenders (#17230)
  • fix(remix): Ensure source maps upload fails silently if Sentry CLI fails (#17082)
  • fix(replay): Fix re-sampled sessions after a click (#17008)
  • fix(svelte): Do not insert preprocess code in script module in Svelte 5 (#17114)
  • fix(sveltekit): Align error status filtering and mechanism in handleErrorWithSentry (#17157)

Work in this release was contributed by richardjelinek-fastest. Thank you for your contribution!

9.44.2

This release is publishing the AWS Lambda Layer under SentryNodeServerlessSDKv9. The previous release 9.44.1 accidentally published the layer under SentryNodeServerlessSDKv10.

9.44.1

  • fix(replay/v9): Call sendBufferedReplayOrFlush when opening/sending feedback (#17270)

9.44.0

  • feat(replay/v9): Deprecate _experiments.autoFlushOnFeedback (#17219)
  • feat(v9/core): Add shared flushIfServerless function (#17239)
  • feat(v9/node-native): Upgrade sentry-internal/node-native-stacktrace to 0.2.2 (#17256)
  • feat(v9/react-router): Add createSentryHandleError (#17244)
  • feat(v9/react-router): Automatically flush on serverless for loaders/actions (#17243)
  • feat(v9/react-router): Automatically flush on serverless for request handler (#17242)
  • fix(v9/astro): Construct parametrized route during runtime (#17227)
  • fix(v9/nextjs): Flush in route handlers (#17245)
  • fix(v9/node): Fix exports for openai instrumentation (#17238) (#17241)

9.43.0

  • 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)

9.42.1

  • 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)

9.42.0

  • 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)

9.41.0

Important Changes

  • feat(v9/core): Deprecate experimental enableLogs and beforeSendLog option (#17092)

Sentry now has support for structured logging. Previously to enable structured logging, you had to use the _experiments.enableLogs and _experiments.beforeSendLog options. These options have been deprecated in favor of the top-level enableLogs and beforeSendLog options.

// before
Sentry.init({
  _experiments: {
    enableLogs: true,
    beforeSendLog: log => {
      return log;
    },
  },
});

// after
Sentry.init({
  enableLogs: true,
  beforeSendLog: log => {
    return log;
  },
});
  • feat(astro): Implement parameterized routes
    • feat(v9/astro): Parametrize dynamic server routes (#17141)
    • feat(v9/astro): Parametrize routes on client-side (#17143)

Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.

Other Changes

  • feat(v9/node): Add shouldHandleError option to fastifyIntegration (#17123)
  • fix(v9/cloudflare) Allow non UUID workflow instance IDs (#17135)
  • fix(v9/node): Ensure tool errors for vercelAiIntegration have correct trace (#17142)
  • fix(v9/remix): Ensure source maps upload fails silently if Sentry CLI fails (#17095)
  • fix(v9/svelte): Do not insert preprocess code in script module in Svelte 5 (#17124)

Work in this release was contributed by richardjelinek-fastest. Thank you for your contribution!

9.40.0

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!

9.39.0

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!

9.38.0

Important Changes

  • chore: Add craft entry for sentry/node-native (#16907)

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)

9.37.0

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!

9.36.0

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!

9.35.0

  • 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!

9.34.0

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)

9.33.0

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!

9.32.0

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!

9.31.0

Important Changes

  • feat(nextjs): Add option for auto-generated random tunnel route (#16626)

Adds an option to automatically generate a random tunnel route for the Next.js SDK. This helps prevent ad blockers and other tools from blocking Sentry requests by using a randomized path instead of the predictable /monitoring endpoint.

  • feat(core): Allow to pass scope & client to getTraceData (#16633)

Adds the ability to pass custom scope and client parameters to the getTraceData function, providing more flexibility when generating trace data for distributed tracing.

Other Changes

  • feat(core): Add support for x-forwarded-host and x-forwarded-proto headers (#16687)
  • deps: Remove unused sentry/opentelemetry dependency (#16677)
  • deps: Update all bundler plugin instances to latest & allow caret ranges (#16641)
  • feat(deps): Bump prisma/instrumentation from 6.8.2 to 6.9.0 (#16608)
  • feat(flags): add node support for generic featureFlagsIntegration and move utils to core (#16585)
  • feat(flags): capture feature flag evaluations on spans (#16485)
  • feat(pino): Add initial package for sentry/pino-transport (#16652)
  • fix: Wait for the correct clientWidth/clientHeight when showing Feedback Screenshot previews (#16648)
  • fix(browser): Remove usage of Array.at() method (#16647)
  • fix(core): Improve safeJoin usage in console logging integration (#16658)
  • fix(google-cloud-serverless): Make CloudEvent type compatible (#16661)
  • fix(nextjs): Fix lookup of instrumentation-client.js file (#16637)
  • fix(node): Ensure graphql errors result in errored spans (#16678)

9.30.0

  • feat(nextjs): Add URL to tags of server components and generation functions issues (#16500)
  • feat(nextjs): Ensure all packages we auto-instrument are externalized (#16552)
  • feat(node): Automatically enable vercelAiIntegration when ai module is detected (#16565)
  • feat(node): Ensure modulesIntegration works in more environments (#16566)
  • feat(core): Don't gate user on logs with sendDefaultPii (#16527)
  • feat(browser): Add detail to measure spans and add regression tests (#16557)
  • feat(node): Update Vercel AI span attributes (#16580)
  • fix(opentelemetry): Ensure only orphaned spans of sent spans are sent (#16590)

9.29.0

Important Changes

  • feat(browser): Update web-vitals to 5.0.2 (#16492)

This release upgrades the web-vitals library to version 5.0.2. This upgrade could slightly change the collected web vital values and potentially also influence alerts and performance scores in the Sentry UI.

Other Changes

  • feat(deps): Bump sentry/rollup-plugin from 3.4.0 to 3.5.0 (#16524)
  • feat(ember): Stop warning for onError usage (#16547)
  • feat(node): Allow to force activate vercelAiIntegration (#16551)
  • feat(node): Introduce ignoreLayersType option to koa integration (#16553)
  • fix(browser): Ensure suppressTracing does not leak when async (#16545)
  • fix(vue): Ensure root component render span always ends (#16488)

9.28.1

  • feat(deps): Bump sentry/cli from 2.45.0 to 2.46.0 (#16516)
  • fix(nextjs): Avoid tracing calls to symbolication server on dev (#16533)
  • fix(sveltekit): Add import attribute for node exports (#16528)

Work in this release was contributed by eltigerchino. Thank you for your contribution!

9.28.0

Important Changes

  • feat(nestjs): Stop creating spans for TracingInterceptor (#16501)

With this change we stop creating spans for TracingInterceptor as this interceptor only serves as an internal helper and adds noise for the user.

  • feat(node): Update vercel ai spans as per new conventions (#16497)

This feature ships updates to the span names and ops to better match OpenTelemetry. This should make them more easily accessible to the new agents module view we are building.

Other Changes

  • fix(sveltekit): Export vercelAIIntegration from sentry/node (#16496)

Work in this release was contributed by agrattan0820. Thank you for your contribution!

9.27.0

  • feat(node): Expand how vercel ai input/outputs can be set (#16455)
  • feat(node): Switch to new semantic conventions for Vercel AI (#16476)
  • feat(react-router): Add component annotation plugin (#16472)
  • feat(react-router): Export wrappers for server loaders and actions (#16481)
  • fix(browser): Ignore unrealistically long INP values (#16484)
  • fix(react-router): Conditionally add ReactRouterServer integration (#16470)

9.26.0

  • feat(react-router): Re-export functions from sentry/react (#16465)
  • fix(nextjs): Skip re instrumentating on generate phase of experimental build mode (#16410)
  • fix(node): Ensure adding sentry-trace and baggage headers via SentryHttpInstrumentation doesn't crash (#16473)

9.25.1

  • fix(otel): Don't ignore child spans after the root is sent (#16416)

9.25.0

Important Changes

  • feat(browser): Add option to ignore mark and measure spans (#16443)

This release adds an option to browserTracingIntegration that lets you ignore
mark and measure spans created from the performance.mark(...) and performance.measure(...) browser APIs:

Sentry.init({
  integrations: [
    Sentry.browserTracingIntegration({
      ignorePerformanceApiSpans: ['measure-to-ignore', /mark-to-ignore/],
    }),
  ],
});

Other Changes

  • feat(browser): Export getTraceData from the browser sdks (#16433)
  • feat(node): Add includeServerName option (#16442)
  • fix(nuxt): Remove setting sentry/nuxt external (#16444)

9.24.0

Important Changes

  • feat(angular): Bump sentry/angular peer dependencies to add Angular 20 support (#16414)

This release adds support for Angular 20 to the Sentry Angular SDK sentry/angular.

Other Changes

  • feat(browser): Add unregisterOriginalCallbacks option to browserApiErrorsIntegration (#16412)
  • feat(core): Add user to logs (#16399)
  • feat(core): Make sure Supabase db query insights are populated (#16169)

9.23.0

Important changes

  • feat(browser): option to ignore certain resource types (#16389)

Adds an option to opt out of certain resource.* spans via ignoreResourceSpans.

For example, to opt out of resource.script spans:

Sentry.browserTracingIntegration({
  ignoreResourceSpans: ['resource.script'],
}),

Other changes

  • feat: Export isEnabled from all SDKs (#16405)
  • feat(browser): Disable client when browser extension is detected in init() (#16354)
  • feat(core): Allow re-use of captureLog (#16352)
  • feat(core): Export _INTERNAL_captureSerializedLog (#16387)
  • feat(deps): bump opentelemetry/semantic-conventions from 1.32.0 to 1.34.0 (#16393)
  • feat(deps): bump prisma/instrumentation from 6.7.0 to 6.8.2 (#16392)
  • feat(deps): bump sentry/cli from 2.43.0 to 2.45.0 (#16395)
  • feat(deps): bump sentry/webpack-plugin from 3.3.1 to 3.5.0 (#16394)
  • feat(nextjs): Include static/chunks/main-* files for widenClientFileUpload (#16406)
  • feat(node): Do not add HTTP & fetch span instrumentation if tracing is disabled (#15730)
  • feat(nuxt): Added support for nuxt layers (#16372)
  • fix(browser): Ensure logs are flushed when sendClientReports=false (#16351)
  • fix(browser): Move browserTracingIntegration code to setup hook (#16386)
  • fix(cloudflare): Capture exceptions thrown in hono (#16355)
  • fix(node): Don't warn about Spotlight on empty NODE_ENV (#16381)
  • fix(node): Suppress Spotlight calls (#16380)
  • fix(nuxt): Add sentry/nuxt as external in Rollup (#16407)
  • fix(opentelemetry): Ensure withScope keeps span active & _getTraceInfoFromScope works (#16385)

Work in this release was contributed by Xenossolitarius. Thank you for your contribution!

9.22.0

Important changes

  • Revert "feat(browser): Track measure detail as span attributes" (#16348)

This is a revert of a feature introduced in 9.20.0 with #16240. This feature was causing crashes in firefox, so we are reverting it. We will re-enable this functionality in the future after fixing the crash.

Other changes

  • feat(deps): bump sentry/rollup-plugin from 3.1.2 to 3.2.1 (#15511)
  • fix(remix): Use generic types for ServerBuild argument and return (#16336)

9.21.0

  • docs: Fix v7 migration link (#14629)
  • feat(node): Vendor in fastify/otel (#16328)
  • fix(nestjs): Handle multiple OnEvent decorators (#16306)
  • fix(node): Avoid creating breadcrumbs for suppressed requests (#16285)
  • fix(remix): Add missing client exports to server and cloudflare entries (#16341)

Work in this release was contributed by phthhieu. Thank you for your contribution!

9.20.0

Important changes

  • feat(browser): Track measure detail as span attributes (#16240)

The SDK now automatically collects details passed to performance.measure options.

Other changes

  • feat(node): Add maxIncomingRequestBodySize (#16225)
  • feat(react-router): Add server action instrumentation (#16292)
  • feat(react-router): Filter manifest requests (#16294)
  • feat(replay): Extend default list for masking with aria-label (#16192)
  • fix(browser): Ensure pageload & navigation spans have correct data (#16279)
  • fix(cloudflare): Account for static fields in wrapper type (#16303)
  • fix(nextjs): Preserve next.route attribute on root spans (#16297)
  • feat(node): Fork isolation scope in tRPC middleware (#16296)
  • feat(core): Add orgId option to init and DSC (sentry-org_id in baggage) (#16305)

9.19.0

  • feat(react-router): Add otel instrumentation for server requests (#16147)
  • feat(remix): Vendor in opentelemetry-instrumentation-remix (#16145)
  • fix(browser): Ensure spans auto-ended for navigations have cancelled reason (#16277)
  • fix(node): Pin fastify/otel fork to direct url to allow installing without git (#16287)
  • fix(react): Handle nested parameterized routes in reactrouterv3 transaction normalization (#16274)

Work in this release was contributed by sidx1024. Thank you for your contribution!

9.18.0

Important changes

  • feat: Support Node 24 (#16236)

We now also publish profiling binaries for Node 24.

Other changes

  • deps(node): Bump import-in-the-middle to 1.13.1 (#16260)
  • feat: Export consoleLoggingIntegration from vercel edge sdk (#16228)
  • feat(cloudflare): Add support for email, queue, and tail handler (#16233)
  • feat(cloudflare): Improve http span data (#16232)
  • feat(nextjs): Add more attributes for generation functions (#16214)
  • feat(opentelemetry): Widen peer dependencies to support Otel v2 (#16246)
  • fix(core): Gracefully handle invalid baggage entries (#16257)

⚠️ Changelog content truncated by 71138 characters because it was over the limit (60000) and wouldn't fit into PR description.

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from 030274a to 1345289 Compare March 4, 2025 03:13
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 4, 2025
@github-actions github-actions bot requested a review from antonis as a code owner March 4, 2025 03:13
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 7 times, most recently from cfd5581 to 03257a4 Compare March 5, 2025 14:46
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v9.3.0 chore(deps): update JavaScript SDK to v9.4.0 Mar 5, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from 03257a4 to 90749e3 Compare March 5, 2025 18:24
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v9.4.0 chore(deps): update JavaScript SDK to v9.5.0 Mar 7, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 10 times, most recently from 833bcf6 to ed685c1 Compare March 13, 2025 17:20
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 3 times, most recently from f337332 to dfdeff3 Compare March 14, 2025 13:44
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v9.5.0 chore(deps): update JavaScript SDK to v9.6.0 Mar 18, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from dfdeff3 to ed9b7cd Compare March 18, 2025 03:16
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v9.42.1 chore(deps): update JavaScript SDK to v9.43.0 Jul 30, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 2 times, most recently from eeed16d to 0f789b7 Compare August 1, 2025 03:40
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v9.43.0 chore(deps): update JavaScript SDK to v10.0.0 Aug 1, 2025
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v10.0.0 chore(deps): update JavaScript SDK to v10.1.0 Aug 5, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 5 times, most recently from 40db4dc to 9d5fb6e Compare August 6, 2025 11:18
@bruno-garcia bruno-garcia requested a review from alwx as a code owner August 6, 2025 11:18
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 2 times, most recently from 806489e to 33260de Compare August 6, 2025 12:12
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v10.1.0 chore(deps): update JavaScript SDK to v10.2.0 Aug 7, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from 33260de to ba8ca71 Compare August 7, 2025 03:35
@lucas-zimerman lucas-zimerman removed the request for review from krystofwoldrich August 7, 2025 17:23
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 5 times, most recently from fb801b1 to 9327cb7 Compare August 8, 2025 10:57
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v10.2.0 chore(deps): update JavaScript SDK to v10.3.0 Aug 11, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 2 times, most recently from 870712a to e271d2f Compare August 11, 2025 14:13
@github-actions github-actions bot changed the title chore(deps): update JavaScript SDK to v10.3.0 chore(deps): update JavaScript SDK to v10.4.0 Aug 11, 2025
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch 3 times, most recently from 9b01e7c to f11bbeb Compare August 12, 2025 08:10
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-javascript.sh branch from f11bbeb to 52718c9 Compare August 12, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants