awslabs / dynamodb-data-mapper-js

A schema-based data mapper for Amazon DynamoDB.
https://awslabs.github.io/dynamodb-data-mapper-js/
Apache License 2.0
816 stars 106 forks source link

X-Ray Integration - is there a property or setting for that? #187

Open edgar-slalom opened 4 years ago

edgar-slalom commented 4 years ago

Sorry -don't see a feature request list or discussion forum. But adding the x-ray integration would make this production ready.

captainsano commented 4 years ago

This is possible while setting up the mapper:

// wrap client with AWS X-Ray
const dynamoDbClient = AWSXRay.captureAWSClient(new AWS.DynamoDB());

// setup the mapper
const mapper = new DataMapper({
    client: dynamoDbClient,
    ...
});