In my code, I'm using aws-xray-sdk
at the moment and I want to migrate to @aws-sdk/client-xray
, XRay Client - AWS SDK for JavaScript v3. I have the following piece of code and my question is what would be a replacement for it using the new xray client? Apart from XRay, I use S3, SES, and SQS.
import * as https from 'https';
import AWSXRay from 'aws-xray-sdk';
import AWS from 'aws-sdk';
AWSXRay.captureHTTPsGlobal(https, false);
AWSXRay.captureAWS(AWS);