pm2-io-apm
pm2-io-apm copied to clipboard
HTTP P95 Latency with socket.io
When using socket.io as described in socket.io docs, sometimes the connection switches from websockets into long polling. This causes PM2 to report HTTP P95 Latency at around 25 seconds.
As I understand, there is a hook in https://github.com/keymetrics/pm2-io-apm/blob/master/src/metrics/httpMetrics.ts
Is there a way to prevent the long polling requests from skewing the stats?
+1
+2