Allow FOG metrics to expire on app version, not build date
Categories
(Toolkit :: Telemetry, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox83 | --- | fixed |
People
(Reporter: chutten, Assigned: chutten)
References
Details
(Whiteboard: [telemetry:fog:m?])
Attachments
(4 files)
Due to pesky things like ESR, expiring on build dates doesn't make as much sense for metrics in Firefox Desktop as it does for metrics in our other projects.
Also, the concept of "expiry" being tied to versions allows for things like the Beta Simulation builds to correctly catch bad tests caused by expired metrics.
I propose we support in FOG the following three expiry values:
- "expired" for manually expiring metrics
- "never" for never-expiring metrics
Xwhich is a number like88to denote the first version in which this metric is considered expired- e.g. the metric will only be reported on versions
< X
- e.g. the metric will only be reported on versions
To support this we'll need to:
- Loosen the glean_parser metrics schema so it accepts numbers like "88"
- Ideally this will be a number, not a string containing a number, but I'm not fussy
- Augment glean_parser to accept an
expiresvalidation function as an option - Add docs and tests to glean_parser
- Cut a glean_parser release
- Vendor the new release in mozilla-central
- Write the validation function in
run_glean_parserand add some FOG tests
This'll be fun!
Comment 1•5 years ago
|
||
Sounds like a good plan in general.
Only one suggestion: maybe add some way to make it clear that it's a build number. I can imagine expiring on other numeric things in the future and this could cause some confusion (see how we used to support numbers for bugs and ultimately required URLs). e.g.: Use the string build:88 instead of the number 88.
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
| Assignee | ||
Comment 4•5 years ago
|
||
| Assignee | ||
Comment 5•5 years ago
|
||
There are three acceptable expires values for FOG metrics:
expired - Used to manually mark a metric as expired.
never - Used to mark permanent data collections.
X - A number representing the first major Firefox version where this metric
will be expired.
Depends on D90392
| Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Michael Droettboom [:mdroettboom] from comment #1)
Sounds like a good plan in general.
Only one suggestion: maybe add some way to make it clear that it's a build number. I can imagine expiring on other numeric things in the future and this could cause some confusion (see how we used to support numbers for bugs and ultimately required URLs). e.g.: Use the string
build:88instead of the number88.
I've gone with it being a string instead of a number, but otherwise left it indistinguishable from any other string of digits because of the previous examples of Firefox Telemetry and because I couldn't think of a concise way to signify the "type" of what we're after (it's not just the version, it's the major portion of the app version.)
Comment 8•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5596a03b5334
https://hg.mozilla.org/mozilla-central/rev/acfaf1382fa0
Description
•