newrelic / elixir_agent

New Relic's Open Source Elixir Agent
https://hex.pm/packages/new_relic_agent
Apache License 2.0
252 stars 96 forks source link

Long poll requests #386

Open ivanovv opened 2 years ago

ivanovv commented 2 years ago

Is your feature request related to a problem? Please describe. Currently we are stuck with 1.22.6 version of https://github.com/newrelic/elixir_agent because in its later versions it somehow started tracking time for long poll fallback for the WS connections and that skewed the main graph.

img

Describe the solution you'd like This is a tough one. I mean the long polling requests do take very long time compared to usual requests, and that's totally normal. But the graphs look bad if we plot long polling requests alongside normal requests. So ignoring long poll requests looks best to me.

But maybe there is a better solution that I'm just not aware of.

Describe alternatives you've considered Pinning the hex package version worked for me with Phoenix 1.5, with Phoenix 1.6 I had some issues so I might be forced to fork the repo to lax the dependency requirements.

ivanovv commented 1 year ago

Can somebody help with this one? A workaround to ignore these long poll requests would also work, I think