File tree Expand file tree Collapse file tree 8 files changed +13
-14
lines changed
google-cloud-serverless/src
node/src/integrations/anr Expand file tree Collapse file tree 8 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ export {
1212 addEventProcessor ,
1313 addIntegration ,
1414 amqplibIntegration ,
15+ // eslint-disable-next-line deprecation/deprecation
1516 anrIntegration ,
17+ // eslint-disable-next-line deprecation/deprecation
1618 disableAnrDetectionForCallback ,
1719 captureCheckIn ,
1820 captureConsoleIntegration ,
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export {
4242 close ,
4343 getSentryRelease ,
4444 createGetModuleFromFilename ,
45+ // eslint-disable-next-line deprecation/deprecation
4546 anrIntegration ,
47+ // eslint-disable-next-line deprecation/deprecation
4648 disableAnrDetectionForCallback ,
4749 consoleIntegration ,
4850 httpIntegration ,
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ export {
6262 close ,
6363 getSentryRelease ,
6464 createGetModuleFromFilename ,
65+ // eslint-disable-next-line deprecation/deprecation
6566 anrIntegration ,
67+ // eslint-disable-next-line deprecation/deprecation
6668 disableAnrDetectionForCallback ,
6769 consoleIntegration ,
6870 httpIntegration ,
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export {
4242 close ,
4343 getSentryRelease ,
4444 createGetModuleFromFilename ,
45+ // eslint-disable-next-line deprecation/deprecation
4546 anrIntegration ,
47+ // eslint-disable-next-line deprecation/deprecation
4648 disableAnrDetectionForCallback ,
4749 consoleIntegration ,
4850 httpIntegration ,
Original file line number Diff line number Diff line change @@ -126,34 +126,20 @@ type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & Anr
126126 * Detects when the Node.js main thread event loop is blocked for more than the configured
127127 * threshold (5 seconds by default) and reports these as Sentry events.
128128 *
129- * ## How it works
130- *
131129 * ANR detection uses a worker thread to monitor the event loop in the main app thread.
132130 * The main app thread sends a heartbeat message to the ANR worker thread every 50ms by default.
133131 * If the ANR worker does not receive a heartbeat message for the configured threshold duration,
134132 * it triggers an ANR event.
135133 *
136- * ## Requirements
137- *
138134 * - Node.js 16.17.0 or higher
139135 * - Only supported in the Node.js runtime (not browsers)
140136 * - Not supported for Node.js clusters
141137 *
142- * ## Performance Impact
143- *
144138 * Overhead should be minimal:
145139 * - Main thread: Only polling the ANR worker over IPC every 50ms
146140 * - Worker thread: Consumes around 10-20 MB of RAM
147141 * - When ANR detected: Brief pause in debugger to capture stack trace (negligible compared to the blocking)
148142 *
149- * ## Configuration Options
150- *
151- * - `pollInterval`: Interval to send heartbeat messages (default: 50ms)
152- * - `anrThreshold`: Threshold in milliseconds to trigger an ANR event (default: 5000ms)
153- * - `captureStackTrace`: Whether to capture stack traces using the Node.js inspector API (default: false)
154- * - `maxAnrEvents`: Maximum number of ANR events to send (default: 1)
155- * - `staticTags`: Tags to include with ANR events
156- *
157143 * @example
158144 * ```javascript
159145 * Sentry.init({
Original file line number Diff line number Diff line change 55 addEventProcessor ,
66 addIntegration ,
77 amqplibIntegration ,
8+ // eslint-disable-next-line deprecation/deprecation
89 anrIntegration ,
910 disableAnrDetectionForCallback ,
1011 captureCheckIn ,
Original file line number Diff line number Diff line change 88 addEventProcessor ,
99 addIntegration ,
1010 amqplibIntegration ,
11+ // eslint-disable-next-line deprecation/deprecation
1112 anrIntegration ,
13+ // eslint-disable-next-line deprecation/deprecation
1214 disableAnrDetectionForCallback ,
1315 captureCheckIn ,
1416 captureConsoleIntegration ,
Original file line number Diff line number Diff line change 88 addEventProcessor ,
99 addIntegration ,
1010 amqplibIntegration ,
11+ // eslint-disable-next-line deprecation/deprecation
1112 anrIntegration ,
13+ // eslint-disable-next-line deprecation/deprecation
1214 disableAnrDetectionForCallback ,
1315 captureCheckIn ,
1416 captureConsoleIntegration ,
You can’t perform that action at this time.
0 commit comments