@@ -82,10 +82,12 @@ describe('NodeClient', () => {
8282 initOpenTelemetry ( client ) ;
8383
8484 withIsolationScope ( isolationScope => {
85+ // eslint-disable-next-line deprecation/deprecation
8586 isolationScope . setRequestSession ( { status : 'ok' } ) ;
8687
8788 client . captureException ( new Error ( 'test exception' ) ) ;
8889
90+ // eslint-disable-next-line deprecation/deprecation
8991 const requestSession = isolationScope . getRequestSession ( ) ;
9092 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
9193 } ) ;
@@ -103,10 +105,12 @@ describe('NodeClient', () => {
103105 client . initSessionFlusher ( ) ;
104106
105107 withIsolationScope ( isolationScope => {
108+ // eslint-disable-next-line deprecation/deprecation
106109 isolationScope . setRequestSession ( { status : 'ok' } ) ;
107110
108111 client . captureException ( new Error ( 'test exception' ) ) ;
109112
113+ // eslint-disable-next-line deprecation/deprecation
110114 const requestSession = isolationScope . getRequestSession ( ) ;
111115 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
112116 } ) ;
@@ -124,10 +128,12 @@ describe('NodeClient', () => {
124128 client . initSessionFlusher ( ) ;
125129
126130 withIsolationScope ( isolationScope => {
131+ // eslint-disable-next-line deprecation/deprecation
127132 isolationScope . setRequestSession ( { status : 'crashed' } ) ;
128133
129134 client . captureException ( new Error ( 'test exception' ) ) ;
130135
136+ // eslint-disable-next-line deprecation/deprecation
131137 const requestSession = isolationScope . getRequestSession ( ) ;
132138 expect ( requestSession ! . status ) . toEqual ( 'crashed' ) ;
133139 } ) ;
@@ -145,10 +151,12 @@ describe('NodeClient', () => {
145151 client . initSessionFlusher ( ) ;
146152
147153 withIsolationScope ( isolationScope => {
154+ // eslint-disable-next-line deprecation/deprecation
148155 isolationScope . setRequestSession ( { status : 'ok' } ) ;
149156
150157 client . captureException ( new Error ( 'test exception' ) ) ;
151158
159+ // eslint-disable-next-line deprecation/deprecation
152160 const requestSession = isolationScope . getRequestSession ( ) ;
153161 expect ( requestSession ! . status ) . toEqual ( 'errored' ) ;
154162 } ) ;
@@ -167,13 +175,15 @@ describe('NodeClient', () => {
167175
168176 let isolationScope : Scope ;
169177 withIsolationScope ( _isolationScope => {
178+ // eslint-disable-next-line deprecation/deprecation
170179 _isolationScope . setRequestSession ( { status : 'ok' } ) ;
171180 isolationScope = _isolationScope ;
172181 } ) ;
173182
174183 client . captureException ( new Error ( 'test exception' ) ) ;
175184
176185 setImmediate ( ( ) => {
186+ // eslint-disable-next-line deprecation/deprecation
177187 const requestSession = isolationScope . getRequestSession ( ) ;
178188 expect ( requestSession ) . toEqual ( { status : 'ok' } ) ;
179189 done ( ) ;
@@ -194,8 +204,10 @@ describe('NodeClient', () => {
194204 client . initSessionFlusher ( ) ;
195205
196206 withIsolationScope ( isolationScope => {
207+ // eslint-disable-next-line deprecation/deprecation
197208 isolationScope . setRequestSession ( { status : 'ok' } ) ;
198209 client . captureEvent ( { message : 'message' , exception : { values : [ { type : 'exception type 1' } ] } } ) ;
210+ // eslint-disable-next-line deprecation/deprecation
199211 const requestSession = isolationScope . getRequestSession ( ) ;
200212 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
201213 } ) ;
@@ -209,10 +221,12 @@ describe('NodeClient', () => {
209221 client . initSessionFlusher ( ) ;
210222
211223 withIsolationScope ( isolationScope => {
224+ // eslint-disable-next-line deprecation/deprecation
212225 isolationScope . setRequestSession ( { status : 'ok' } ) ;
213226
214227 client . captureEvent ( { message : 'message' , exception : { values : [ { type : 'exception type 1' } ] } } ) ;
215228
229+ // eslint-disable-next-line deprecation/deprecation
216230 const requestSession = isolationScope . getRequestSession ( ) ;
217231 expect ( requestSession ! . status ) . toEqual ( 'errored' ) ;
218232 } ) ;
@@ -230,10 +244,12 @@ describe('NodeClient', () => {
230244 client . initSessionFlusher ( ) ;
231245
232246 withIsolationScope ( isolationScope => {
247+ // eslint-disable-next-line deprecation/deprecation
233248 isolationScope . setRequestSession ( { status : 'ok' } ) ;
234249
235250 client . captureEvent ( { message : 'message' } ) ;
236251
252+ // eslint-disable-next-line deprecation/deprecation
237253 const requestSession = isolationScope . getRequestSession ( ) ;
238254 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
239255 } ) ;
@@ -254,6 +270,7 @@ describe('NodeClient', () => {
254270 isolationScope . clear ( ) ;
255271 client . captureEvent ( { message : 'message' , exception : { values : [ { type : 'exception type 1' } ] } } ) ;
256272
273+ // eslint-disable-next-line deprecation/deprecation
257274 expect ( isolationScope . getRequestSession ( ) ) . toEqual ( undefined ) ;
258275 } ) ;
259276 } ) ;
@@ -270,10 +287,12 @@ describe('NodeClient', () => {
270287 client . initSessionFlusher ( ) ;
271288
272289 withIsolationScope ( isolationScope => {
290+ // eslint-disable-next-line deprecation/deprecation
273291 isolationScope . setRequestSession ( { status : 'ok' } ) ;
274292
275293 client . captureEvent ( { message : 'message' , type : 'transaction' } ) ;
276294
295+ // eslint-disable-next-line deprecation/deprecation
277296 const requestSession = isolationScope . getRequestSession ( ) ;
278297 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
279298 } ) ;
@@ -287,10 +306,12 @@ describe('NodeClient', () => {
287306 initOpenTelemetry ( client ) ;
288307
289308 withIsolationScope ( isolationScope => {
309+ // eslint-disable-next-line deprecation/deprecation
290310 isolationScope . setRequestSession ( { status : 'ok' } ) ;
291311
292312 client . captureEvent ( { message : 'message' , exception : { values : [ { type : 'exception type 1' } ] } } ) ;
293313
314+ // eslint-disable-next-line deprecation/deprecation
294315 const requestSession = isolationScope . getRequestSession ( ) ;
295316 expect ( requestSession ! . status ) . toEqual ( 'ok' ) ;
296317 } ) ;
@@ -527,6 +548,7 @@ describe('flush/close', () => {
527548 // not due to the interval running every 60s
528549 clearInterval ( client [ '_sessionFlusher' ] ! [ '_intervalId' ] ) ;
529550
551+ // eslint-disable-next-line deprecation/deprecation
530552 const sessionFlusherFlushFunc = jest . spyOn ( SessionFlusher . prototype , 'flush' ) ;
531553
532554 const delay = 1 ;
0 commit comments