Closed Bug 1664306 Opened 5 years ago Closed 5 years ago

Allow FOG metrics to expire on app version, not build date

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
83 Branch
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
  • X which is a number like 88 to denote the first version in which this metric is considered expired
    • e.g. the metric will only be reported on versions < X

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 expires validation 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_parser and add some FOG tests

This'll be fun!

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.

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

(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:88 instead of the number 88.

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.)

Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5596a03b5334 Bump vendored glean_parser version to 1.28.5 r=janerik https://hg.mozilla.org/integration/autoland/rev/acfaf1382fa0 FOG metrics should expire on version, not date. r=janerik
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: