简体   繁体   中英

Get X-Ray interactions For AWS QLDB Using Nodejs ( lambda )

I tried this way, But I want more detailed requests inside QLDB x-ray interactions.

const AWSXRay = require("aws-xray-sdk");
/** QLDB x-ray */
AWSXRay.captureAWS(require("aws-sdk")); //For this x-ray show sendCommand() Requests, But info not in detail

AWSXRay.captureHTTPsGlobal(require("https")); //For this x-ray show 'POST https://session.qldb.xx-xxx-x.amazonaws.com/', But info not in detail
/** QLDB x-ray */

Let me know if anyone tried in a different way apart from the above option I mentioned.

in case if you know just share your snippet code here. ( X-Ray interactions with QLDB )

Currently, QLDB is not integrated with AWS X-Ray. This leaves the following options to trace interactions with QLDB:

These options - as you point out - do not provide much outside of identifying the operation/API invoked or the URL a request is made to. What further details are you interested in viewing in the traces? For instance, are you interested in identifying the exact commands - such as CommitTransaction or ExecuteStatement - sent through in a SendCommand API call? For the commands supported by the SendCommand API, see: https://docs.aws.amazon.com/qldb/latest/developerguide/API_QLDB-Session_SendCommand.html .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM