Skip to content

Commit ba73f6b

Browse files
committed
rename to event loop block
1 parent 853d244 commit ba73f6b

File tree

5 files changed

+23
-143
lines changed

5 files changed

+23
-143
lines changed

docs/platforms/javascript/common/configuration/application-not-responding.mdx renamed to docs/platforms/javascript/common/configuration/event-loop-block.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Application Not Responding (ANR)
2+
title: Event Loop Block Detection
33
sidebar_order: 70
4-
description: "Learn how to turn off or specify ANRs for Node.js"
4+
description: "Monitor for blocked event loops in Node.js applications"
55
supported:
66
- javascript.node
77
- javascript.aws-lambda
@@ -25,26 +25,27 @@ supported:
2525
- javascript.tanstackstart-react
2626
keywords:
2727
[
28+
"event loop block",
2829
"anr",
2930
"Application Not Responding",
3031
"Event Loop Blocked",
3132
"Event Loop Stalls",
3233
]
3334
---
3435

35-
Application Not Responding (ANR) errors, or Event Loop Stall errors, are triggered when the Node.js main thread event loop of an application is blocked for more than a specified threshold. The Node SDK reports ANR errors as Sentry events and can optionally attach a stack trace of the blocking code to the ANR event.
36+
Event Loop Block detection monitors when the Node.js main thread event loop is blocked for more than a specified threshold. The Node SDK reports these events to Sentry with automatically captured stack traces to help identify blocking code.
3637

3738
<Include name="feature-stage-beta.mdx" />
3839

3940
<Alert>
4041

41-
ANR detection is not supported for [Node.js clusters](https://nodejs.org/api/cluster.html).
42+
Event loop block detection is not supported for [Node.js clusters](https://nodejs.org/api/cluster.html).
4243

4344
</Alert>
4445

4546
## Event Loop Block Integration (Recommended)
4647

47-
For the best performance and comprehensive monitoring, we recommend using the [`eventLoopBlockIntegration`](./integrations/event-loop-block) from the `@sentry/node-native` package. This integration can monitor all threads in your Node.js application and provides better performance compared to the deprecated ANR integration.
48+
For the best performance and comprehensive monitoring, we recommend using the [`eventLoopBlockIntegration`](./integrations/event-loop-block) from the `@sentry/node-native` package. Stack traces are automatically captured when blocking is detected. This integration can monitor all threads in your Node.js application and provides better performance compared to the deprecated ANR integration.
4849

4950
```javascript
5051
import * as Sentry from "@sentry/node";
@@ -58,7 +59,7 @@ Sentry.init({
5859

5960
For detailed usage instructions and configuration options, see the [`eventLoopBlockIntegration`](./integrations/event-loop-block) documentation.
6061

61-
## Deprecated ANR Integration
62+
## Deprecated Application Not Responding (ANR) Integration
6263

6364
<Alert type="warning">
6465

docs/platforms/javascript/common/configuration/integrations/anr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This integration only works in the Node.js runtime.
3838

3939
_Import name: `Sentry.anrIntegration`_
4040

41-
The `anrIntegration` captures Application Not Responding (ANR)/Event Loop Stall errors and reports them as Sentry events. For more details, see the documentation on [ANR](../../application-not-responding).
41+
The `anrIntegration` captures Application Not Responding (ANR)/Event Loop Stall errors and reports them as Sentry events. For more details, see the documentation on [Event Loop Block Detection](../../event-loop-block).
4242

4343
```JavaScript
4444
Sentry.init({

docs/platforms/javascript/common/configuration/integrations/event-loop-block.mdx

Lines changed: 0 additions & 132 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Application Not Responding (ANR)
2+
title: Event Loop Block Detection
33
sidebar_order: 70
4-
description: "Learn how to turn off or specify ANRs for Electron Main Thread"
4+
description: "Monitor for blocked event loops in Electron applications"
55
keywords:
66
[
77
"anr",
@@ -11,7 +11,7 @@ keywords:
1111
]
1212
---
1313

14-
Application Not Responding (ANR) errors, or Event Loop Stall errors, are
14+
Event Loop Block errors, or Application Not Responding (ANR) errors are
1515
triggered when the Electron main or renderer processes event loop is blocked for more than
1616
five seconds. The Electron SDK reports ANR errors as Sentry events and can
1717
optionally attach a stack trace of the blocking code to the ANR event.
@@ -79,7 +79,7 @@ interface Options {
7979
}
8080
```
8181

82-
## ANR Implementation and Overhead
82+
## Application Not Responding (ANR) Implementation and Overhead
8383

8484
ANR detection in the Electron main process uses a worker thread to monitor the event loop
8585
in the main app thread. The main app thread sends a heartbeat message to the ANR

redirects.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,17 @@ const userDocsRedirects = [
11071107
source: '/platforms/javascript/guides/:guide/tracing/trace-propagation/:path*',
11081108
destination: '/platforms/javascript/guides/:guide/tracing/distributed-tracing/:path*',
11091109
},
1110+
{
1111+
source:
1112+
'/platforms/javascript/common/configuration/application-not-responding/:path*',
1113+
destination: '/platforms/javascript/common/configuration/event-loop-block/:path*',
1114+
},
1115+
{
1116+
source:
1117+
'/platforms/javascript/guides/:guide/configuration/application-not-responding/:path*',
1118+
destination:
1119+
'/platforms/javascript/guides/:guide/configuration/event-loop-block/:path*',
1120+
},
11101121
{
11111122
source: '/platforms/javascript/tracing/instrumentation/custom-instrumentation/:path*',
11121123
destination: '/platforms/javascript/tracing/instrumentation/:path*',

0 commit comments

Comments
 (0)