Consider adding a probe to count Telemetry failures by ping type
Categories
(Toolkit :: Telemetry, enhancement, P3)
Tracking
()
People
(Reporter: mreid, Assigned: clement.allain, Mentored)
Details
(Whiteboard: [good second bug][lang=js])
Attachments
(4 files, 7 obsolete files)
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 7•7 years ago
|
||
mozreview-review |
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 9•7 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 11•7 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
mozreview-review |
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
mozreview-review |
Updated•7 years ago
|
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Comment 28•7 years ago
|
||
Comment 29•7 years ago
|
||
mozreview-review |
Comment 30•7 years ago
|
||
Comment 31•7 years ago
|
||
Comment 32•6 years ago
|
||
Comment 33•6 years ago
|
||
Assignee | ||
Comment 34•6 years ago
|
||
Hello, would you mind assigning it to me ?
Few questions :
- Is there a file describing all ping types or should I use the documentation here ? If I got it right, its needed for categorical histograms in the labels field
- Should I write a new test case or edit one ?
Thanks
Comment 35•6 years ago
|
||
Sure, it's yours!
There is no specific registry describing all pings types, and so they might change in name and number at any time. However, the ping type is provided to TelemetrySend as a parameter, so we can use that as a "key" for a keyed histogram. For an example, the patch from Comment #26 was almost complete (though the automated test was missing).
Speaking of testing, whichever organization of testing makes most sense to you. If an existing test case catches almost everything and it seems reasonable to add your code there, then do so and we can chat about it in the code review if I have any concerns. If you're not sure it can cover everything, build out its own test case.
Does that help?
Assignee | ||
Comment 36•6 years ago
|
||
Add a new categorical keyed histogram to count failures type by ping type
Assignee | ||
Comment 37•6 years ago
|
||
So I have edited the test_tooLateToSend, but to me it seems like a test that goes into the errorHandler function is missing (line 1146 of TelemetrySend.jsm), what do you think ?
Comment 38•6 years ago
|
||
This is correct. We haven't (yet) structured the code to make that part testable (we'd need to mock out ServiceRequest so we could call errorHandler
directly with the error codes we want), so we won't be able to cover that part of your patch with tests.
Comment 39•6 years ago
|
||
Comment 40•6 years ago
|
||
Comment 41•6 years ago
|
||
Comment 42•6 years ago
|
||
bugherder |
Assignee | ||
Comment 43•6 years ago
|
||
Add a new categorical keyed histogram to count failures type by ping type
Bug 1437446 : Make probe process choice more visible in about:telemetry
Comment 44•6 years ago
|
||
Comment on attachment 9061731 [details]
Bug 1438896 - Add a probe to count Telemetry failures by ping type.
Revision D29401 was moved to bug 1437446. Setting attachment 9061731 [details] to obsolete.
Updated•5 years ago
|
Description
•