This is a quick example of how to instrument a socket method. https://gist.github.com/adam-hert/006b8da7a9406bc3a2b1ca185a4d4a5e#file-index-js-L15-L23
Documentation: http://docs.traceview.solarwinds.com/Instrumentation/nodejs.html#start-or-continue-a-trace