Discuss what we should do with "uncommitted time" in time spans
Categories
(Data Platform and Tools :: Glean: SDK, defect, P3)
Tracking
(Not tracked)
People
(Reporter: chutten, Unassigned)
References
Details
(Whiteboard: [telemetry:glean-rs:backlog])
Imagine a timespan that measures the amount of time the app is in the foreground, but is in the "metrics" ping and has a "ping" lifetime. Let's call it metrics_foreground
. The session starts at 0345 and the timespan is started. 0400 rolls around and the "metrics" ping is sent.
What happens?
Well, today nothing happens. The timespan isn't "committed" (there's nothing in it because stopAndSet
hasn't been called).
Since metrics_foreground
is in the "metrics" store, should we take the uncommitted time and put it in the "metrics" ping ('restarting' the timespan to 0 at 0400)?
Or, since we wouldn't do this for a timing distribution like some pageload metric, should we continue doing nothing? Though this would mean we'd have no way of including in a ping any metrics we wanted to have a clean "edge" that starts and ends with a store's ping.
Comment 1•6 years ago
|
||
Is it worth to get data science feedback/review on any potential solution here?
(See also: figuring out a process to propose & review metrics or significant changes to them cross-functionally)
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Bring in data science on it ;)
Comment 3•6 years ago
|
||
Let's defer this discussion to the next milestone. Leaving the ni? around.
Updated•6 years ago
|
Comment 4•5 years ago
|
||
Marissa,Mike
do you have any thought on how/if comment 0 should be handled?
Comment 5•5 years ago
|
||
I don't know if I have a suggestion solution, but want to call out a related problem. Definitely interested in hearing :mgorlick's thoughts as this relates to time-related analysis.
Related to this, we have the problem of uncommitted time when the application shuts down. Right now, we lose that time completely, which IMHO, is even worse than having that time placed on a later ping (in the scenario from comment #0). Given all of the problems we know we have with "doing things on process shutdown" with Android, I don't know if there is any solution to that problem.
Updated•5 years ago
|
Updated•5 years ago
|
Description
•