Have probe_scraper build the superset of all labels ever for a given labeled metric
Categories
(Data Platform and Tools :: Glean: SDK, defect, P3)
Tracking
(Not tracked)
People
(Reporter: mdroettboom, Assigned: mdroettboom)
Details
(Whiteboard: [telemetry:glean-rs:m11])
If probe_scraper were to build the set of all labels ever used for a labeled metric, we wouldn't need to enforce an "add only" policy on metrics.yaml authors. We should investigate how possible this is in probe_scraper and then document recommended label updating policies based on that.
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
A little more context. We want to be able to support users "deprecating" existing labels and adding new labels in the future, without invalidating previously collected data. I think "renaming" a label should be considered out-of-scope -- that would be equivalent to deleting a label and adding a new one (in the sense that there is no connection between the old and the new).
I looks like probe_scraper and mozilla-schema-generator require no changes for this. Labels are simply unconstrained string (other than their length), and are not enums or anything special. (Which is required for the case of dynamic labels anyway).
The only thing we might want to do is have the probe dictionary find all the labels ever defined for a metric over its history, but maybe that's a different bug?
| Assignee | ||
Comment 2•7 years ago
|
||
Here's a probe-dictionary issue: https://github.com/mozilla/probe-dictionary/issues/72
Comment 3•7 years ago
|
||
(In reply to Michael Droettboom [:mdroettboom] from comment #1)
A little more context. We want to be able to support users "deprecating" existing labels and adding new labels in the future, without invalidating previously collected data. I think "renaming" a label should be considered out-of-scope -- that would be equivalent to deleting a label and adding a new one (in the sense that there is no connection between the old and the new).
I looks like
probe_scraperandmozilla-schema-generatorrequire no changes for this. Labels are simply unconstrained string (other than their length), and are not enums or anything special. (Which is required for the case of dynamic labels anyway).The only thing we might want to do is have the probe dictionary find all the labels ever defined for a metric over its history, but maybe that's a different bug?
Yes, I agree with what you say. And yes, that's a probe-dictionary issue :)
Comment 4•7 years ago
|
||
Yes, this in general sounds like a probe-dictionary issue (and any other consumers). The probe-info-service does already contain this information, albeit with a bit of work to derive it (from all channels, from all history items).
| Assignee | ||
Comment 5•7 years ago
|
||
Ok, then. Closing this in favor of https://github.com/mozilla/probe-dictionary/issues/72
Description
•