Events are buffered until there are enough for a whole batch, or until a thread is free to send them. If the event collector goes down, they will remain in the buffer until requests start getting through again.
Currently, with default configuration, the tracker will attempt to buffer/store up to Integer.MAX_VALUE events. It's the default size of the queue (LinkedBlockingDeque) used. This capacity is too big - we assume the app would crash before buffering so many events.
Let's set a more conservative default buffer capacity.
Events are buffered until there are enough for a whole batch, or until a thread is free to send them. If the event collector goes down, they will remain in the buffer until requests start getting through again.
Currently, with default configuration, the tracker will attempt to buffer/store up to
Integer.MAX_VALUE
events. It's the default size of the queue (LinkedBlockingDeque
) used. This capacity is too big - we assume the app would crash before buffering so many events.Let's set a more conservative default buffer capacity.