RuntimeTools / appmetrics

Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
https://developer.ibm.com/open/node-application-metrics/
Apache License 2.0
970 stars 125 forks source link

Don't attempt to install probe for socket.io v3 or v4 #650

Open frostmar opened 3 years ago

frostmar commented 3 years ago

A quick workaround for issue https://github.com/RuntimeTools/appmetrics/issues/649 I'm afraid this isn't a proper fix, and only avoids installing the socket.io probe for newer versions where that doesn't currently work.

The socket.io probe only patches in successfully with socket.io v1 and v2 If a .Server class is on the socket.io export, this is probably v3+, so don't attempt to patch.