File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
plugins/node/opentelemetry-instrumentation-aws-lambda/test/integrations Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -842,6 +842,19 @@ describe('lambda handler', () => {
842842 } ) ;
843843 } ) ;
844844
845+ describe ( 'non-existent handler module' , ( ) => {
846+ it ( 'should skip instrumentation' , async ( ) => {
847+ initializeHandler ( 'lambda-test/callback.handle' ) ;
848+
849+ const handler = await lambdaLoadHandler ( 'lambda-test/async.handler' ) ;
850+ const result = await handler ( 'arg' , ctx ) ;
851+
852+ assert . strictEqual ( result , 'ok' ) ;
853+ const spans = memoryExporter . getFinishedSpans ( ) ;
854+ assert . strictEqual ( spans . length , 0 ) ;
855+ } ) ;
856+ } ) ;
857+
845858 describe ( 'non-existent handler function' , ( ) => {
846859 it ( 'should skip instrumentation' , async ( ) => {
847860 initializeHandler ( 'lambda-test/async.handle' ) ;
You can’t perform that action at this time.
0 commit comments