0

I followed the Aws tutorial for setting up a node.js project just fine, however it seems like it can only trace http requests.

var AWSXRay = require('aws-xray-sdk');
AWSXRay.captureHTTPsGlobal(require('http'));
var http = require('http');

My project will aslo start utilizing websocket connections apart from the http that already were already set up, but I can't set up Aws xray to also capture my websocket calls (messages after the handshake is established).

The documentation doesn't touch anything websocket related, though.

Is it possible to setup xray to trace websocket connections as well?

highfive_
  • 77
  • 10

1 Answers1

1

The X-Ray SDK for Node does not support patching websocket calls at this time. However this does seem like a perfectly valid use case and you are more than welcome to open a pull request with a new patcher for web socket connections. Alternatively, you could create your own custom (sub)segments as described in this sample code to trace the calls manually.

William Armiros
  • 267
  • 1
  • 10