Class: RemoteRequestData

RemoteRequestData(req, res, downstreamXRayEnabled)

new RemoteRequestData(req, res, downstreamXRayEnabled)

Represents an outgoing HTTP/HTTPS call.
Parameters:
Name Type Description
req http.ClientRequest | https.ClientRequest The request object from the HTTP/HTTPS call.
res http.IncomingMessage | https.IncomingMessage The response object from the HTTP/HTTPS call.
downstreamXRayEnabled boolean when true, adds a "traced": true hint to generated subsegments such that the AWS X-Ray service expects a corresponding segment from the downstream service.
Source: