Investigate adding "reason codes" to the `metrics` ping
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: mdroettboom, Assigned: mdroettboom)
References
Details
(Whiteboard: [telemetry:glean-rs:m11])
Attachments
(2 files)
2.71 KB,
text/plain
|
chutten
:
data-review+
|
Details |
41 bytes,
text/x-github-pull-request
|
Details | Review |
:chutten commented "I kinda/sorta miss the "reason" field when performing these analyses. I liked being able to tell why the ping was sent, and it would help answer questions like these without guessing."
We should investigate whether adding this to Glean is a good idea and probably begin with a design document.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
I think it would be beneficial for the "events" and "metrics" pings a reason
field explaining why they were submitted when they were submitted. Was the "metrics" ping sent because the app was awake at 4AM? Was it sent because it was the first session? Was it sent because we woke up and found that 4AM had passed?
The comment specifically was referencing "events" pings where I couldn't tell which ones were sent at which times without doing some sort of "start_time
is close enough to end_time
" fuzzy math.
I originally thought it'd be useful in ping_info
, but seeing as "baseline" has only one reason to be sent and custom pings have custom reasons, it's only really relevant to "events" and "metrics".
Updated•5 years ago
|
Comment 3•5 years ago
|
||
I'd like to propose the following set of reasons for the metrics
ping:
overdue
: the ping was collected immediately because it was past 4AM local when the check was performed.today
: the ping was to be collected in the same calendar day the scheduling occurred (e.g. this would cover the case of the check happening at 3AM and the ping generated at 4AM)tomorrow
: the ping was to be collected on the next calendar day compared to when the scheduling occurred (e.g. check happening at 5AM and the collection happening at 4AM on the next calendar day).
Note that all of the above might be tricky to get right :)
Thoughts?
Comment 5•5 years ago
|
||
I'm okay with the 3 'reasons' that you propose, so long as the explanations are clearly documented so we know what they represent. It would also be nice to have examples or a list of situations that could trigger each case to help explain why a ping is scheduled.
Comment 6•5 years ago
|
||
Sign-off on these 3 reasons.
Also like to see :chutten's question answered. I figure we might be able to just set a string metric right before we collect the ping?
Assignee | ||
Comment 7•5 years ago
|
||
Sounds good to me as well.
Another use case for the enumeration metric we don't have... :)
Comment 8•5 years ago
|
||
(In reply to Chris H-C :chutten from comment #4)
Sounds fine by me. What would make it tricky?
The fact that, depending on when the workmanager is triggered, we might not really know why it was triggered (did we get a 4am signal from WM today? or is it for "tomorrow"?)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 9•5 years ago
|
||
Adding a note (and whiteboard tag) that this will be useful for investigating issues like the "baseline incident".
Comment 10•5 years ago
|
||
Untaking this, it might change depending on where we go with the metrics ping.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Description
•