Skip to content

Suggestion: Warn when setting flushInterval to < 1 #246

Open
@toddgower-hiatus

Description

@toddgower-hiatus

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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions