Closed Bug 1966970 Opened 1 year ago Closed 1 month ago

Migrate Legacy Telemetry Custom Ping "default-browser" to Glean

Categories

(Toolkit :: Default Browser Agent, task, P2)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox151 --- wontfix
firefox160 --- fixed

People

(Reporter: chutten, Assigned: drubino)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fog-migration][fidedi])

Attachments

(1 external file)

The Legacy Telemetry "default-browser" ping is implemented in toolkit/mozapps/defaultagent/Telemetry.cpp. Its purpose is to report, about once every 24h, what the Windows default browser setting is and whether it has changed.

I'd thought most analyses had already switched over to the "default-agent" ping sent from firefox_desktop_background_defaultagent, and so "migration" might be a word which here means "remove the code and erase the storage", but alas there's a lot of recent querying of this data in STMO by :rtestard and :rtublitz.

This bug is about establishing whether the "default-agent" ping will serve the analysis needs currently supplied by the "default-browser" ping, and if not, bringing it up to that standard.

:cdupuis, do you know of any plans for the "default-browser" ping? Is the "default-agent" ping intended to replace it?

Flags: needinfo?(cdupuis)

:dmcintosh, do you know of plans for the "default-browser" ping?

Flags: needinfo?(dmcintosh)

:rtublitz hasn't been with the company for a few years now, so what you're probably seeing is :rtestard's collection of queries firing periodically. I'd poke them to migrate to Glean, then remove Legacy telemetry. You can add me for review.

Flags: needinfo?(dmcintosh)
Flags: needinfo?(cdupuis)

Hey, :rtestard, are you still using https://sql.telemetry.mozilla.org/queries/74902 and other queries that also use default_browser_agent.default_browser instead of data from firefox_desktop_background_defaultagent? If so, how might I best support your migration from the former to the latter, or otherwise support your analysis needs (while still allowing me to eventually get rid of the "default-browser" ping at some point)?

Flags: needinfo?(rtestard)

As a tag along, errors reading system state are now reported in telemetry as "Error".

Whiteboard: [fog-migration] → [fog-migration][fidedi]
Assignee: chutten → nrishel
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4140a88f5f56 https://hg.mozilla.org/integration/autoland/rev/5a6d730eceb0 Revert "Bug 1966970 - Remove default agent legacy telemetry. r=chutten" at dev request for causing telemetry failures

.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 151 Branch → ---
Flags: needinfo?(rtestard)

There is an r+ patch which didn't land and no activity in this bug for 1 week.
:nrishel, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(nrishel)
Flags: needinfo?(chutten)
Flags: needinfo?(chutten)

I still need to take a pass to verify Glean is being initialized correctly, so r+ patch is intentionally not landing at present.

Flags: needinfo?(nrishel)

Nick, can this move forward now?

Flags: needinfo?(nrishel)

:drubino I got hung up on this question and not having a solid reasoning about whether we "initialize Glean properly" in the default agent context to disable telemetry, my suspicion is that we do not and we would need to plumb the Windows registry pref key to Glean initialization in the default agent some way. I would would to see manual verification that Glean is disabled where appropriate (either manual inspection or test) to move this forward.

Flags: needinfo?(nrishel)

Ultimately this patch is strictly removing data collection and so has no Policy objections to landing. There is no additional data being collected. And the only "expansion" is that it will also submit from unofficial builds which are handled by FOG internally to not upload anyway, so I mention it only for completeness' sake.

The "is the default agent's behaviour wrt data collection understood and correct" question is orthogonal and can (and I'd argue should) be handled separately.

What do you think, :nrishel?

Flags: needinfo?(nrishel)

Ah, I crossed wires here. I have a local commit that removes the manually "is disabled" check and instead relies on Glean's mechanism, but I wasn't confident that was correct.

:drubino if you want to commandeer the revision and rebase I think it should land without much fuss.

Flags: needinfo?(nrishel)

:drubino I went ahead an rebased this on main, but haven't investigated the telemetry regression that prompt the last back out. That's what actually needs to be resolved before landing.

Flags: needinfo?(drubino)

OK, I'm assigning this to myself and commandeering the revision.

Assignee: nrishel → drubino
Flags: needinfo?(drubino)
Status: REOPENED → RESOLVED
Closed: 7 months ago → 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: