Skip to content

node-lambda incompatible with AWS X-Ray #288

Description

@vladaman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions