Skip to content

Commit 95223df

Browse files
committed
deprecations
1 parent a4a99c4 commit 95223df

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

packages/astro/src/index.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

packages/aws-serverless/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

packages/bun/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

packages/google-cloud-serverless/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

packages/node/src/integrations/anr/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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({

packages/remix/src/server/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export {
55
addEventProcessor,
66
addIntegration,
77
amqplibIntegration,
8+
// eslint-disable-next-line deprecation/deprecation
89
anrIntegration,
910
disableAnrDetectionForCallback,
1011
captureCheckIn,

packages/solidstart/src/server/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export {
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,

packages/sveltekit/src/server/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export {
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,

0 commit comments

Comments
 (0)