Skip to content

Commit 779cd26

Browse files
author
Luca Forstner
committed
meta(changelog): Update changelog for 7.72.0
1 parent a57b66d commit 779cd26

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,55 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.72.0
8+
9+
### Important Changes
10+
11+
- **feat(node): App Not Responding with stack traces (#9079)**
12+
13+
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
14+
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
15+
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
16+
17+
To enable ANR detection, import and use the `enableANRDetection` function from the `@sentry/node` package before you run the rest of your application code.
18+
Any event loop blocking before calling `enableANRDetection` will not be detected by the SDK.
19+
20+
Example (ESM):
21+
22+
```ts
23+
import * as Sentry from "@sentry/node";
24+
25+
Sentry.init({
26+
dsn: "___PUBLIC_DSN___",
27+
tracesSampleRate: 1.0,
28+
});
29+
30+
await Sentry.enableANRDetection({ captureStackTrace: true });
31+
// Function that runs your app
32+
runApp();
33+
```
34+
35+
Example (CJS):
36+
37+
```ts
38+
const Sentry = require("@sentry/node");
39+
40+
Sentry.init({
41+
dsn: "___PUBLIC_DSN___",
42+
tracesSampleRate: 1.0,
43+
});
44+
45+
Sentry.enableANRDetection({ captureStackTrace: true }).then(() => {
46+
// Function that runs your app
47+
runApp();
48+
});
49+
```
50+
51+
### Other Changes
52+
53+
- fix(nextjs): Filter `RequestAsyncStorage` locations by locations that webpack will resolve (#9114)
54+
- fix(replay): Ensure `replay_id` is not captured when session is expired (#9109)
55+
756
## 7.71.0
857

958
- feat(bun): Instrument Bun.serve (#9080)

0 commit comments

Comments
 (0)