-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X-Ray captureAWSClient DynamoDB DocumentClient didn't work #1846
Comments
@polovi const AWSXray = require('aws-xray-sdk');
const AWS = require('aws-sdk');
const client = new AWS.DynamoDB.DocumentClient({
service: new AWS.DynamoDB({...})
});
AWSXray.captureAWSClient(client.service); |
@chrisradek But there is problem if i use typescript that AWS.DynamoDB.DocumentClient.service is internal and not defined in d.ts file so I am not able to compile it |
Any progress? |
@polovi a workaround for your TypeScript issue is, ...
AWSXray.captureAWSClient((client as any).service); which casts the client to |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Is there some workaround for capture DocumentClient with xray except capture whole SDK?
Due to creating custom service provider this code didnt work.
If service from configuration will be used as it is and not created again then captureAWSClient will be work. I also set everything up in my service and no configuration params ar pushed to DocumentClient constructor
The text was updated successfully, but these errors were encountered: