Migrate Legacy Telemetry Custom Ping "uitour-tag" to Glean
Categories
(Toolkit :: Telemetry, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: chutten, Assigned: chutten)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fog-migration])
Attachments
(1 external file)
The Legacy Telemetry "uitour-tag" ping is implemented in browser/components/uitour/UITour.sys.mjs. Its purpose is general-purpose uses of the setTreamtmentTag UITour library API.
It might very well be unused. We've received 140 "uitour-tag" pings since Jan 1, 2025.
This bug is about finding out whether this ping is now or soon will be in use, and if so, building a Glean equivalent to ensure its data remains useful into the future ("migrating" it).
Updated•1 year ago
|
| Comment hidden (typo) |
| Assignee | ||
Comment 2•1 year ago
|
||
Gijs, you win the prize for being the last person to touch UITour.sys.mjs. Do you know if it's live code, and if so, who I might ask questions of about plans for its near future?
Comment 3•1 year ago
|
||
(In reply to Chris H-C :chutten from comment #2)
Gijs, you win the prize for being the last person to touch UITour.sys.mjs. Do you know if it's live code,
Yes.
and if so, who I might ask questions of about plans for its near future?
https://firefox-source-docs.mozilla.org/mots/index.html#in-product-messaging covers these files, so probably Punam and other people listed there.
That said, I am plotting and scheming talking to product and others about using UITour to let users enable features directly from our what's new pages, made a recent security fix there, and have worked on it in the past, so I have some context myself. I'm not sure what questions you have, though. :-)
| Assignee | ||
Comment 4•1 year ago
|
||
My initial round of questions is: With only 140 pings received YTD, is this instrumentation (the "uitour-tag" ping) of any current use? Can we "migrate" it by removing it from the codebase?
And, if "migrate" shouldn't mean "remove it", would the instrumentation prefer to be its own ping in Glean as well? It looks kinda event-shaped.
Comment 5•1 year ago
|
||
(In reply to Chris H-C :chutten from comment #4)
My initial round of questions is: With only 140 pings received YTD, is this instrumentation (the "uitour-tag" ping) of any current use? Can we "migrate" it by removing it from the codebase?
And, if "migrate" shouldn't mean "remove it", would the instrumentation prefer to be its own ping in Glean as well? It looks kinda event-shaped.
OK, I was unfamiliar with this ping, but it seems it is only sent if something uses setTreatmentTag. That was added a Long Time Ago (specifically, Fx34). There are no in-tree uses, but there is a corresponding getTreatmentTag that can also be called via UI tour.
That means probably this is a question for the web team - and if there is no recent use then I'd expect any pings to be coming either from automated tests or from hits on very old whatsnew/tour pages... If so, we could potentially remove the get/setTreatmentTags and make them no-ops, and remove the telemetry ping code. If we can't remove it, off-hand I don't see any reason it can't be a "regular" glean event - though again, not super familiar with the ping, it almost seems like Alessio might be a better person to ask as he dealt with the submitExternalPing bits at the time... Maybe his memory is better than mine! ;-)
Anyway - first things first, in terms of usage of this setTreatmentTag/getTreatmentTag - Alex, can you help us out? Any idea if we're still using setTreatmentTag on any recent WNP pages or any other www properties (or sumo/firefox.com, I guess?)
| Assignee | ||
Comment 6•1 year ago
|
||
I can help a little from the data side and say that, of the now-148 pings received YTD, 80 are from v41, 64 are from v40, and 4 are from v43.
I will also note that this data is very unlikely to be used as for whatever reason it isn't being transformed with a schema and so its entire payload is stuffed in additional_properties (I had to mozfun.norm.truncate_version(STRING(PARSE_JSON(additional_properties).application.version), 'major') AS app_major, to get the version numbers).
I think I'll prepare a patch for this ping's removal, as it seems the most likely action we'll end up taking here.
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 8•1 year ago
•
|
||
Anyway - first things first, in terms of usage of this setTreatmentTag/getTreatmentTag - Alex, can you help us out? Any idea if we're still using setTreatmentTag on any recent WNP pages or any other www properties (or sumo/firefox.com, I guess?)
If memory serves me correctly, setTreatmentTag/getTreatmentTag were added a long time ago when we switched from Google Search -> Yahoo, and we wanted to understand some impact of that via the /whatsnew page we ran for it. I do not believe these particular API calls have been used in bedrock since then, so they are likely safe to remove today.
I cannot really speak for other projects however, so maybe best double-check with SUMO also.
Comment 9•1 year ago
|
||
(In reply to Alex Gibson [:agibson] from comment #8)
Anyway - first things first, in terms of usage of this setTreatmentTag/getTreatmentTag - Alex, can you help us out? Any idea if we're still using setTreatmentTag on any recent WNP pages or any other www properties (or sumo/firefox.com, I guess?)
If memory serves me correctly, setTreatmentTag/getTreatmentTag were added a long time ago when we switched from Google Search -> Yahoo, and we wanted to understand some impact of that via the /whatsnew page we ran for it. I do not believe these particular API calls have been used in bedrock since then, so they are likely safe to remove today.
Thanks!
I cannot really speak for other projects however, so maybe best double-check with SUMO also.
For SUMO, https://github.com/search?q=repo%3Amozilla%2Fkitsune%20getTreatmentTag&type=code indicates the only reference is in the copied website client library JS file, and no others (no actual use). So I think we could make the method a no-op and/or remove it; certainly there is no need for the ping.
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Backed out for causing mochitests failures in browser_UITour.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/uitour/test/browser_UITour.js | A promise chain failed to handle a rejection: Actor 'SpecialPowers' destroyed before query 'Spawn' was resolved - stack: (No stack available.)
| Assignee | ||
Comment 13•1 year ago
|
||
Ah, sorry, missed an await in the test when I unrolled all the promises to remove the notify
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Description
•