Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要跟踪 http 请求,我们必须使用通过下一条语句解析的 http 模块:
var http = AWSXRay.captureHTTPs(require('http'));
但是如何跟踪外部 npm 包发送的传出请求?
您可以使用 captureHTTPSGlobal 函数,该函数适用于大多数第 3 方库。