Does anyone know, how to fix issue with node-lambda run and AWS X-Ray? When I include following:
var AWSXRay = require('aws-xray-sdk-core');
var AWS = AWSXRay.captureAWS(require('aws-sdk'));
I get this error:
/lambda/node_modules/aws-xray-sdk-core/lib/context_utils.js:34
throw new Error(message);
^
Error: Failed to get the current sub/segment from the context.
Does anyone know, how to fix issue with node-lambda run and AWS X-Ray? When I include following:
I get this error: