File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export { localVariablesIntegration } from './integrations/local-variables';
1010export { modulesIntegration } from './integrations/modules' ;
1111export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception' ;
1212export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection' ;
13+ // eslint-disable-next-line deprecation/deprecation
1314export { anrIntegration , disableAnrDetectionForCallback } from './integrations/anr' ;
1415
1516export { expressIntegration , expressErrorHandler , setupExpressErrorHandler } from './integrations/tracing/express' ;
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export interface AnrIntegrationOptions {
7171 appRootPath : string | undefined ;
7272}
7373
74+ // eslint-disable-next-line deprecation/deprecation
7475export interface WorkerStartData extends AnrIntegrationOptions {
7576 debug : boolean ;
7677 sdkMetadata : SdkMetadata ;
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ const INTEGRATION_NAME = 'Anr';
6666
6767type AnrInternal = { startWorker : ( ) => void ; stopWorker : ( ) => void } ;
6868
69+ // eslint-disable-next-line deprecation/deprecation
6970const _anrIntegration = ( ( options : Partial < AnrIntegrationOptions > = { } ) => {
7071 if ( NODE_VERSION . major < 16 || ( NODE_VERSION . major === 16 && NODE_VERSION . minor < 17 ) ) {
7172 throw new Error ( 'ANR detection requires Node 16.17.0 or later' ) ;
@@ -114,6 +115,7 @@ const _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {
114115 } as Integration & AnrInternal ;
115116} ) satisfies IntegrationFn ;
116117
118+ // eslint-disable-next-line deprecation/deprecation
117119type AnrReturn = ( options ?: Partial < AnrIntegrationOptions > ) => Integration & AnrInternal ;
118120
119121/**
@@ -175,6 +177,7 @@ export const anrIntegration = defineIntegration(_anrIntegration) as AnrReturn;
175177 */
176178async function _startWorker (
177179 client : NodeClient ,
180+ // eslint-disable-next-line deprecation/deprecation
178181 integrationOptions : Partial < AnrIntegrationOptions > ,
179182) : Promise < ( ) => void > {
180183 const dsn = client . getDsn ( ) ;
You can’t perform that action at this time.
0 commit comments