简体   繁体   English

使用 Nodejs ( lambda ) 获取 AWS QLDB 的 X 射线交互

[英]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.我试过这种方式,但我想在 QLDB x 射线交互中获得更详细的请求。

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 ) (与 QLDB 的 X 射线交互)

Currently, QLDB is not integrated with AWS X-Ray.目前,QLDB 未与 AWS X-Ray 集成。 This leaves the following options to trace interactions with QLDB:这留下了以下选项来跟踪与 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.这些选项 - 正如您所指出的 - 除了识别调用的操作/API 或发出请求的 URL 之外,并没有提供太多功能。 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?例如,您是否有兴趣识别在SendCommand API 调用中发送的确切命令(例如CommitTransactionExecuteStatement For the commands supported by the SendCommand API, see: https://docs.aws.amazon.com/qldb/latest/developerguide/API_QLDB-Session_SendCommand.html .有关SendCommand API 支持的命令,请参阅: https : SendCommand

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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