Debugging occasional slowness
In this screenshot append_to_conversation inserts to a list, that is being queried, and newHistory indicates that we received it.
That happened at 11:18:40
The server says it took just a few ms, but it didn't log until timestamp 11:18:44
Usually it's way more intant, but here it took 4 seconds to arrive at the server. Is there any instrumentation I can add to identify the lag?
It happens rarely, but sometimes I see lags bigger than 20 seconds.
Trying to track down the core issue.

