Skip to content

7.72.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 26 Sep 17:25

Important Changes

  • feat(node): App Not Responding with stack traces (#9079)

This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.

To enable ANR detection, import and use the enableANRDetection function from the @sentry/node package before you run the rest of your application code.
Any event loop blocking before calling enableANRDetection will not be detected by the SDK.

Example (ESM):

import * as Sentry from "@sentry/node";

Sentry.init({
  dsn: "___PUBLIC_DSN___",
  tracesSampleRate: 1.0,
});

await Sentry.enableANRDetection({ captureStackTrace: true });
// Function that runs your app
runApp();

Example (CJS):

const Sentry = require("@sentry/node");

Sentry.init({
  dsn: "___PUBLIC_DSN___",
  tracesSampleRate: 1.0,
});

Sentry.enableANRDetection({ captureStackTrace: true }).then(() => {
  // Function that runs your app
  runApp();
});

Other Changes

  • fix(nextjs): Filter RequestAsyncStorage locations by locations that webpack will resolve (#9114)
  • fix(replay): Ensure replay_id is not captured when session is expired (#9109)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.58 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.46 KB
@sentry/browser - Webpack (gzipped) 22.06 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 70.28 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.57 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.65 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 222.21 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 86.57 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 61.42 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.43 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.61 KB
@sentry/react - Webpack (gzipped) 22.09 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.48 KB
@sentry/nextjs Client - Webpack (gzipped) 51.04 KB