Skip to content

Replace Math.random to prevent duplicate event IDs #499

@christoph-buente

Description

@christoph-buente

According to the definition of a V4 UUID, event_id is supposed to be unique for every event. Unfortunately we see the same event_id more than once in our collected data.

Our example data set has 13,406,731 events from which 13,235,475 have unique event_ids. This means that there are about 1.3% events that have duplicated event_id. These events may come in completely different times and from different ip's. As an example, there are 15 different events with event_id = "f2d4f27d-077a-4086-8cce-5789b10fbfda". See the graphics below.

pasted image at 2016_06_24 12_10 pm

We even have a larger data set with more recent JS tracker versions (2.5.x and 2.6.x), and the duplicate ratio is even worse ~= 1.8%

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:coreAbout the shared core library.priority:highTo fix as soon as possible.status:needs_triageNeeds maintainer triage.type:defectBugs or weaknesses. The issue has to contain steps to reproduce.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions