Skip to content

Update sentry-javascript monorepo to v9.10.0#10482

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/sentry-javascript-monorepo
Mar 28, 2025
Merged

Update sentry-javascript monorepo to v9.10.0#10482
renovate[bot] merged 1 commit into
mainfrom
renovate/sentry-javascript-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 26, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/browser (source) 9.5.0 -> 9.10.0 age adoption passing confidence
@sentry/types (source) 9.5.0 -> 9.10.0 age adoption passing confidence

Release Notes

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

v9.10.0

Compare Source

Important Changes
  • feat: Add support for logs

    • feat(node): Add logging public APIs to Node SDKs (#​15764)
    • feat(core): Add support for beforeSendLog (#​15814)
    • feat(core): Add support for parameterizing logs (#​15812)
    • fix: Remove critical log severity level (#​15824)

    All JavaScript SDKs other than @sentry/cloudflare and @sentry/deno now support sending logs via dedicated methods as part of Sentry's upcoming logging product.

    Logging is gated by an experimental option, _experiments.enableLogs.

    Sentry.init({
      dsn: 'PUBLIC_DSN',
      // `enableLogs` must be set to true to use the logging features
      _experiments: { enableLogs: true },
    });
    
    const { trace, debug, info, warn, error, fatal, fmt } = Sentry.logger;
    
    trace('Starting database connection', { database: 'users' });
    debug('Cache miss for user', { userId: 123 });
    error('Failed to process payment', { orderId: 'order_123', amount: 99.99 });
    fatal('Database connection pool exhausted', { database: 'users', activeConnections: 100 });
    
    // Structured logging via the `fmt` helper function. When you use `fmt`, the string template and parameters are sent separately so they can be queried independently in Sentry.
    
    info(fmt(`Updated profile for user ${userId}`));
    warn(fmt(`Rate limit approaching for endpoint ${endpoint}. Requests: ${requests}, Limit: ${limit}`));

    With server-side SDKs like @sentry/node, @sentry/bun or server-side of @sentry/nextjs or @sentry/sveltekit, you can do structured logging without needing the fmt helper function.

    const { info, warn } = Sentry.logger;
    
    info('User %s logged in successfully', [123]);
    warn('Failed to load user %s data', [123], { errorCode: 404 });

    To filter logs, or update them before they are sent to Sentry, you can use the _experiments.beforeSendLog option.

  • feat(browser): Add diagnoseSdkConnectivity() function to programmatically detect possible connectivity issues (#​15821)

    The diagnoseSdkConnectivity() function can be used to programmatically detect possible connectivity issues with the Sentry SDK.

    const result = await Sentry.diagnoseSdkConnectivity();

    The result will be an object with the following properties:

    • "no-client-active": There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
    • "sentry-unreachable": The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.
    • undefined: The SDK is working as expected.
  • SDK Tracing Performance Improvements for Node SDKs

    • feat: Stop using dropUndefinedKeys (#​15796)
    • feat(node): Only add span listeners for instrumentation when used (#​15802)
    • ref: Avoid dropUndefinedKeys for spanToJSON calls (#​15792)
    • ref: Avoid using SentryError for PromiseBuffer control flow (#​15822)
    • ref: Stop using dropUndefinedKeys in SpanExporter (#​15794)
    • ref(core): Avoid using SentryError for event processing control flow (#​15823)
    • ref(node): Avoid dropUndefinedKeys in Node SDK init (#​15797)
    • ref(opentelemetry): Avoid sampling work for non-root spans (#​15820)

    We've been hard at work making performance improvements to the Sentry Node SDKs (@sentry/node, @sentry/aws-serverless, @sentry/nestjs, etc.). We've seen that upgrading from 9.7.0 to 9.10.0 leads to 30-40% improvement in request latency for HTTP web-server applications that use tracing with high sample rates. Non web-server applications and non-tracing applications will see smaller improvements.

Other Changes
  • chore(deps): Bump rrweb to 2.35.0 (#​15825)
  • deps: Bump bundler plugins to 3.2.3 (#​15829)
  • feat: Always truncate stored breadcrumb messages to 2kb (#​15819)
  • feat(nextjs): Disable server webpack-handling for static builds (#​15751)
  • fix(nuxt): Don't override Nuxt options if undefined (#​15795)

Bundle size 📦

Path Size
@​sentry/browser 23.08 KB
@​sentry/browser - with treeshaking flags 22.88 KB
@​sentry/browser (incl. Tracing) 36.49 KB
@​sentry/browser (incl. Tracing, Replay) 73.65 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 78.3 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 90.87 KB
@​sentry/browser (incl. Feedback) 40.21 KB
@​sentry/browser (incl. sendFeedback) 27.71 KB
@​sentry/browser (incl. FeedbackAsync) 32.5 KB
@​sentry/react 24.86 KB
@​sentry/react (incl. Tracing) 38.39 KB
@​sentry/vue 27.3 KB
@​sentry/vue (incl. Tracing) 38.18 KB
@​sentry/svelte 23.12 KB
CDN Bundle 24.33 KB
CDN Bundle (incl. Tracing) 36.51 KB
CDN Bundle (incl. Tracing, Replay) 71.53 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 76.71 KB
CDN Bundle - uncompressed 70.93 KB
CDN Bundle (incl. Tracing) - uncompressed 108.11 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 219.4 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.97 KB
@​sentry/nextjs (client) 39.68 KB
@​sentry/sveltekit (client) 36.92 KB
@​sentry/node 142.91 KB
@​sentry/node - without tracing 96.12 KB
@​sentry/aws-serverless 120.46 KB

v9.9.0

Compare Source

Important Changes
  • feat(nextjs): Support instrumentation-client.ts (#​15705)

    Next.js recently added a feature to support client-side (browser) instrumentation via the experimental.clientInstrumentationHook flag and the instrumentation-client.ts file.

    To be forwards compatible, the Sentry Next.js SDK will now pick up instrumentation-client.ts files even on older Next.js versions and add them to your client bundles.
    It is suggested that you either rename your sentry.client.config.ts file to instrumentation-client.ts, or if you already happen to have a instrumentation-client.ts file move the contents of sentry.client.config.ts to instrumentation-client.ts.

  • feat(browser): Add previous_trace span links (#​15569)

    The @sentry/browser SDK and SDKs based on @sentry/browser now emits a link from the first root span of a newly started trace to the root span of a previously started trace. You can control this feature via an option in browserTracingIntegration():

    Sentry.init({
      dsn: 'your-dsn-here'
      integrations: [
        Sentry.browserTracingIntegration({
          // Available settings:
          // - 'in-memory' (default): Stores previous trace information in memory
          // - 'session-storage': Stores previous trace information in the browser's `sessionStorage`
          // - 'off': Disable storing and sending previous trace information
          linkPreviousTrace: 'in-memory',
        }),
      ],
    });
  • feat(browser): Add logger.X methods to browser SDK (#​15763)

    For Sentry's upcoming logging product, the SDK now supports sending logs via dedicated

    Sentry.init({
      dsn: 'your-dsn-here',
      _experiments: {
        enableLogs: true, // This is required to use the logging features
      },
    });
    
    Sentry.logger.info('This is a trace message', { userId: 123 });
    // See PR for better documentation

    Please note that the logs product is still in early access. See the link above for more information.

Other Changes
  • feat(browser): Attach host as part of error message to "Failed to fetch" errors (#​15729)
  • feat(core): Add parseStringToURL method (#​15768)
  • feat(core): Optimize dropUndefinedKeys (#​15760)
  • feat(node): Add fastify shouldHandleError (#​15771)
  • fix(nuxt): Delete no longer needed Nitro 'close' hook (#​15790)
  • perf(nestjs): Remove usage of addNonEnumerableProperty (#​15766)
  • ref: Avoid some usage of dropUndefinedKeys() (#​15757)
  • ref: Remove some usages of dropUndefinedKeys() (#​15781)
  • ref(nextjs): Fix Next.js vercel-edge runtime package information (#​15789)

v9.8.0

Compare Source

  • feat(node): Implement new continuous profiling API spec (#​15635)
  • feat(profiling): Add platform to chunk envelope (#​15758)
  • feat(react): Export captureReactException method (#​15746)
  • fix(node): Check for res.end before passing to Proxy (#​15776)
  • perf(core): Add short-circuits to eventFilters integration (#​15752)
  • perf(node): Short circuit flushing on Vercel only for Vercel (#​15734)

v9.7.0

Compare Source

  • feat(core): Add captureLog method (#​15717)
  • feat(remix/cloudflare): Export sentryHandleError (#​15726)
  • fix(node): Always flush on Vercel before Lambda freeze (#​15602)
  • fix(node): Ensure incoming traces are propagated without HttpInstrumentation (#​15732)
  • fix(node): Use fatal level for unhandled rejections in strict mode (#​15720)
  • fix(nuxt): Delete Nuxt server template injection (#​15749)

v9.6.1

Compare Source

v9.6.0

Compare Source

Important Changes
  • feat(tanstackstart): Add @sentry/tanstackstart-react package and make @sentry/tanstackstart package a utility package (#​15629)

    Since TanStack Start is supposed to be a generic framework that supports libraries like React and Solid, the @sentry/tanstackstart SDK package was renamed to @sentry/tanstackstart-react to reflect that the SDK is specifically intended to be used for React TanStack Start applications.
    Note that the TanStack Start SDK is still in alpha status and may be subject to breaking changes in non-major package updates.

Other Changes
  • feat(astro): Accept all vite-plugin options (#​15638)
  • feat(deps): bump @​sentry/webpack-plugin from 3.2.1 to 3.2.2 (#​15627)
  • feat(tanstackstart): Refine initial API (#​15574)
  • fix(core): Ensure fill only patches functions (#​15632)
  • fix(nextjs): Consider pageExtensions when looking for instrumentation file (#​15701)
  • fix(remix): Null-check options (#​15610)
  • fix(sveltekit): Correctly parse angle bracket type assertions for auto instrumentation (#​15578)
  • fix(sveltekit): Guard process variable (#​15605)

Work in this release was contributed by @​angelikatyborska and @​nwalters512. Thank you for your contributions!


Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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


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

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

@renovate renovate Bot force-pushed the renovate/sentry-javascript-monorepo branch 7 times, most recently from 50b8898 to e9995b0 Compare March 27, 2025 19:51
@renovate renovate Bot changed the title Update sentry-javascript monorepo to v9.9.0 Update sentry-javascript monorepo to v9.10.0 Mar 27, 2025
@renovate renovate Bot force-pushed the renovate/sentry-javascript-monorepo branch from e9995b0 to 89af926 Compare March 27, 2025 22:41
@renovate renovate Bot force-pushed the renovate/sentry-javascript-monorepo branch from 89af926 to 0360fc4 Compare March 28, 2025 03:05
@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Coverage
Overall Coverage 🟢 30.56%

Minimum allowed coverage is 0%, this run produced 30.56%

@renovate renovate Bot merged commit 714cb9f into main Mar 28, 2025
@renovate renovate Bot deleted the renovate/sentry-javascript-monorepo branch March 28, 2025 06:48
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.

0 participants