-
Notifications
You must be signed in to change notification settings - Fork 63
client-node x-ray integration #191
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
Comments
I will try and get you a clear answer. What environment are you running this in? AWS Lambda? |
Yes, we are running APIG + Labdas with Node 10. Thank you. |
The KmsKeyringNode uses a You can create your own const AWSXRay = require('aws-xray-sdk')
const { getClient, cacheClients } = require('@aws-crypto/client-node')
const { KMS } = AWSXRay.captureAWS(require('aws-sdk'))
const clientProvider = cacheClients(getClient(KMS)) Or you can wrap the KMS Client returned by const AWSXRay = require('aws-xray-sdk')
const { getKmsClient, cacheClients } = require('@aws-crypto/client-node')
const clientProvider = cacheClients(region => AWSXRay.captureAWSClient(getKmsClient(region))) Now that you have a const keyring = new KmsKeyringNode({ clientProvider, /* Your generatorKeyId, and keyIds here */}) |
Thanks a lot for the explanation. That's exactly what we needed. Cheers! |
Hi,
I've been looking into the source code and issues but could not find a way to trace the KMS requests made by
client-node
using AWS X-Ray.Could you please confirm if that's possible?
Thank you.
The text was updated successfully, but these errors were encountered: