pm2-io-apm icon indicating copy to clipboard operation
pm2-io-apm copied to clipboard

HTTP P95 Latency with socket.io

Open md-seb opened this issue 5 years ago • 2 comments

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?

md-seb avatar Dec 24 '19 09:12 md-seb

+1

DalerAkhmetov avatar Jan 21 '20 09:01 DalerAkhmetov

+2

TimCrooker avatar May 25 '23 20:05 TimCrooker