Duplicate flow begin events are emitted #4468
Comments
|
Something I only just noticed is that the difference between flow times on the duplicated events shown above remains constant. It is 146 milliseconds in each case, which suggests to me that these really are the same events on the client but they've been sent to the |
|
I have a theory! Currently, we flush the events and timers when we know that the data has been successfully posted to I've tried to simulate this by indulging in a spot of lightning-fast tab/window switching locally, but haven't managed it yet (the problem seems to be common to all user agents). But anyway, if something like the above is the cause of the problem (and it's the best idea I have so far), explicitly checking for and preventing re-entrancy would fix it. Going to open a PR to see what people think. |
Some flow begin events appear to be emitted twice, with identical timestamp, type and flow id. These are visible both in redash and kibana, so it's definitely not caused by any processing weirdness in the metrics pipeline:
The text was updated successfully, but these errors were encountered: