Skip to content

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

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

Bumps packages/flutter/scripts/update-js.sh from 9.40.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!

@github-actions github-actions bot requested a review from denrase as a code owner August 11, 2025 13:46
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-js.sh/10.4.0 branch 2 times, most recently from 790c2a5 to 72f1487 Compare August 11, 2025 13:50
Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.90%. Comparing base (e10be73) to head (c0aa356).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3157       +/-   ##
===========================================
+ Coverage   79.27%   89.90%   +10.63%     
===========================================
  Files          35       96       +61     
  Lines        1433     3429     +1996     
===========================================
+ Hits         1136     3083     +1947     
- Misses        297      346       +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-js.sh/10.4.0 branch from 72f1487 to 4d2073f Compare August 11, 2025 15:03
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-js.sh/10.4.0 branch from 4d2073f to c0aa356 Compare August 12, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant