Skip to content

Commit df47728

Browse files
committed
fix: readd deprecation warning
1 parent e6cd95c commit df47728

File tree

2 files changed

+11
-0
lines changed
  • packages

2 files changed

+11
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export {
4747
winterCGHeadersToDict,
4848
// eslint-disable-next-line deprecation/deprecation
4949
anrIntegration,
50+
// eslint-disable-next-line deprecation/deprecation
5051
disableAnrDetectionForCallback,
5152
consoleIntegration,
5253
httpIntegration,

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,17 @@ async function _startWorker(
265265
};
266266
}
267267

268+
/**
269+
* @see {@link disableBlockDetectionForCallback}
270+
*
271+
* @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.
272+
*/
268273
export function disableAnrDetectionForCallback<T>(callback: () => T): T;
274+
/**
275+
* @see {@link disableBlockDetectionForCallback}
276+
*
277+
* @deprecated The ANR integration has been deprecated. Use `eventLoopBlockIntegration` from `@sentry/node-native` instead.
278+
*/
269279
export function disableAnrDetectionForCallback<T>(callback: () => Promise<T>): Promise<T>;
270280
/**
271281
* Temporarily disables ANR detection for the duration of a callback function.

0 commit comments

Comments
 (0)