Description
Is your feature request related to a problem? Please describe.
We struggled for quite a while trying to understand why we were missing events in our Segment instance and other cloud destinations while seeing the events in device-mode destinations. Turns out it was because the person who implemented the upgrade from Segment Android to Segment Kotlin inadvertently set the flushInterval
to 0. As you can see here, the Segment SDK dropped a bunch of events because of that.
Describe the solution you'd like
Would recommend throwing a warning when flushInterval
is set to a value < 1
Describe alternatives you've considered
Update the documentation to describe what will happen if flushInterval
is set to 0. Logically, you could say that if the flush interval is 0, then it'll attempt to flush whenever it has events in the queue.