Open kochhar opened 6 years ago
@kochhar To solve this, the function prototype for TelemeteryEvent.start() will need to be changed to accept dateTime as an argument. Is that okay?
I'm not sure I fully understand why the start time should be injected into the start function. The function can take the start time as the current time when the function is called.
@ajinkya-k commented on Sat Dec 16 2017
In the sunbird-portal telemetry, when
OE_START
is created and a correspondingOE_END
is pushed to theTelemetryV2Manager._end
queue, the time that is stored asets
inOE_START
is different from the time that is stored in the queue OE_END event that is used to calculate theedata.eks.length
when theOE_END
event is actually fired. As a result, the actual time spent on the content is miscalculated. Ideally,OE_START
ets
must match with the startTime used for calculating OE_ENDedata.eks.length
@kochhar commented on Mon Dec 18 2017
Thanks for the bug report @ajinkya-k. Could you please submit a PR for the fix? Thanks!