keymetrics / pm2-io-apm

PM2.io APM for Node.JS
Apache License 2.0
147 stars 40 forks source link

HTTP P95 Latency with socket.io #268

Open md-seb opened 4 years ago

md-seb commented 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?

DalerAkhmetov commented 4 years ago

+1

TimCrooker commented 1 year ago

+2