You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
Right now we get events (and with #3727 timings) one-by-one to our /events and /timing endpoints. It would be better to batch these, since some events happen very quickly in succession. Batching can be as simple as:
letpendingEvents=[];leteventTimer=null;functionsendEvent(event){// do normal stuff to prepare the event// set the time of the eventpendingEvents.push(event);if(!eventTimer){eventTimer=setTimeout(()=>{eventTimer=null;flushAllEvents();pendingEvents=[];},1000);}}
We should set queueTime to backdate the events. Note that means we should record how long it was between sendEvent() being called, and flushAllEvents() (per-event).
The text was updated successfully, but these errors were encountered:
Right now we get events (and with #3727 timings) one-by-one to our /events and /timing endpoints. It would be better to batch these, since some events happen very quickly in succession. Batching can be as simple as:
We should set queueTime to backdate the events. Note that means we should record how long it was between
sendEvent()
being called, andflushAllEvents()
(per-event).The text was updated successfully, but these errors were encountered: