Stopping Logentries High Response Time alerts that are due to normal Actioncable behavior
Upon pushing a new Rails 6.1 app to Heroku, we promptly started getting “High Response Time” alerts from Logentries:
... heroku router - - .... method=GET path="/cable" .... request_id=xxxxx ... connect=4ms service=61011ms ...
We noticed they were all for the url /cable which makes sense, since Actioncable keeps the channel open, so the service time keeps increasing.
I saw some online posts suggesting to disable the High Response Time alert, but a better way IMO is ot keep the alert, but omit that particular route.
In your Logentries dashboard, simply edit Tags&Alert > High Response Time > Pattern
(service > 5000)
(service > 5000) AND NOT (path cable)