Open md-seb opened 4 years ago
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
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?