Closed Bug 1938657 Opened 1 year ago Closed 1 year ago

structured missing columns in `firefox_desktop.metrics_v1` for `metrics`.`labeled_counter`.`update.skip_startup_update_reason`.`none`

Categories

(Data Platform and Tools :: General, defect)

defect

Tracking

(firefox136 fixed)

RESOLVED FIXED
Tracking Status
firefox136 --- fixed

People

(Reporter: srose, Assigned: benwu)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [dataquality])

Attachments

(1 file)

No description provided.

This seems to be coming from bug 1907128. The metric is defined in https://searchfox.org/mozilla-central/source/toolkit/mozapps/update/metrics.yaml#509. This metrics.yaml is used by firefox_desktop_background_update but not firefox_desktop so the column isn't in the normal desktop tables.

:bytesized, is this metric expected to be sent by the firefox desktop glean app as well as the background update task or is this a bug?

Assignee: nobody → bewu
Flags: needinfo?(bytesized)
Keywords: regression
Regressed by: 1907128

(In reply to Ben Wu [:benwu] from comment #1)

:bytesized, is this metric expected to be sent by the firefox desktop glean app as well as the background update task or is this a bug?

It is expected that it will be sent by both.

Flags: needinfo?(bytesized)

In that case, will the values in firefox_desktop be used for analysis? i.e. should it be added as a metric so it shows up as a column in the bigquery table?

I'm not sure if toolkit/mozapps/update/metrics.yaml should be added to firefox_desktop or if a duplicate metric should be defined in another metrics.yaml, since toolkit/mozapps/update/metrics.yaml contains a bunch of unneeded metrics.

(In reply to Ben Wu [:benwu] from comment #3)

In that case, will the values in firefox_desktop be used for analysis? i.e. should it be added as a metric so it shows up as a column in the bigquery table?

Yes

:janerik, what would be the best way to add this metric to firefox_desktop? toolkit/mozapps/update/metrics.yaml could be reused but I don't know if it matters if unneeded metrics are added

Flags: needinfo?(jrediger)

We should probably split out that metric and put it into its own file that can be shared with firefox_desktop. toolkit/mozapps/update/shared_metrics.yaml maybe?

Flags: needinfo?(jrediger)

bytesized, does moving skip_startup_update_reason to toolkit/mozapps/update/shared_metrics.yaml seem reasonable? Could you do that?

Also looking at the telemetry, move_result, no_window_auto_restarts, suppress_prompts, and version_pin are also being sent in firefox desktop. So if those are expected as well then those can be moved to a shared metrics file too

Flags: needinfo?(bytesized)
See Also: → 1941553, 1931025

I don't really like the naming here. As I understand it, this is the only thing that differentiates this as a "background task" metrics file. Which is to say, nothing in that file or even in-tree seems to indicate that. If we are going to have one file that has desktop and background update pings and one file that has only background update pings, I feel like the latter should be the one that gets the non-standard naming. I'm worried that the proposed naming is going to perpetuate this problem. That is to say, I feel like it's going to be hard to get people to stop putting new desktop/shared probes in metrics.yaml.

Would it be okay if I instead moved the metrics that are only for background updates to their own file? Like background_update_metrics.yaml or something?

Flags: needinfo?(bytesized) → needinfo?(bewu)

Yes that makes sense to me. Feel free to name it whatever is easiest to understand and we'll update repositories.yaml

Flags: needinfo?(bewu)
Duplicate of this bug: 1931025
Duplicate of this bug: 1941553
Duplicate of this bug: 1941557
Duplicate of this bug: 1941556
Pushed by rsteuber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/576fc9219c6c Split metrics into background task and shared metrics r=benwu,nalexander,nrishel
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Just a heads up, this was done as a result of Bug 1907124, which is now being backed out in Bug 1960981.

I think I am going to backout around this patch rather than backing it out too. I feel like this was a valuable change, even without Bug 1907124.

Hopefully working around this patch won't be too gnarly.

See Also: → 1960981
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: