File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -306,11 +306,11 @@ export function wrapHandler<TEvent, TResult>(
306
306
if ( options . captureAllSettledReasons && Array . isArray ( rv ) && isPromiseAllSettledResult ( rv ) ) {
307
307
const reasons = getRejectedReasons ( rv ) ;
308
308
reasons . forEach ( exception => {
309
- captureException ( exception , scope => markEventUnhandled ( scope , 'aws-serverless.promise' ) ) ;
309
+ captureException ( exception , scope => markEventUnhandled ( scope , 'auto.function. aws-serverless.promise' ) ) ;
310
310
} ) ;
311
311
}
312
312
} catch ( e ) {
313
- captureException ( e , scope => markEventUnhandled ( scope , 'aws-serverless.handler' ) ) ;
313
+ captureException ( e , scope => markEventUnhandled ( scope , 'auto.function. aws-serverless.handler' ) ) ;
314
314
throw e ;
315
315
} finally {
316
316
clearTimeout ( timeoutWarningTimer ) ;
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ describe('AWSLambda', () => {
501
501
// @ts -expect-error just mocking around...
502
502
expect ( evtProcessor ( event ) . exception . values [ 0 ] ?. mechanism ) . toEqual ( {
503
503
handled : false ,
504
- type : 'aws-serverless.handler' ,
504
+ type : 'auto.function. aws-serverless.handler' ,
505
505
} ) ;
506
506
}
507
507
} ) ;
You can’t perform that action at this time.
0 commit comments