Closed Bug 2071053 Opened 2 months ago Closed 1 month ago

Don't reference subsessions in Glean metrics files

Categories

(Toolkit :: Telemetry, task, P2)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: sfshah, Assigned: Kayano04)

Details

Attachments

(1 external file)

see: https://searchfox.org/firefox-main/search?q=in+a+subsession&path=&case=false&regexp=false.

There are references to Legacy Telemetry scalars in Glean metrics files.
browser/components/search/metrics.yaml (and browser/modules/metrics.yaml, though this isn't for the Search component) both contain references to subsessions e.g. "The count URI loads triggered in a subsession from the urlbar,".

These "in a subsession" references should be removed from Glean metrics files and associated documentation.

Component: Search → Telemetry
Product: Firefox → Toolkit
Summary: references to Legacy Telemetry scalars in Glean metrics files should be removed → Don't reference subsessions in Glean metrics files

I thought I would provide a bit more context to the problem, since my first comment was pretty vague. Subsessions are a Legacy Telemetry concept, not a Glean concept. So references to subsessions (see https://searchfox.org/firefox-main/search?q=in+a+subsession&path=metrics.yaml&case=false&regexp=false) should be removed from metrics.yaml. Also, you can disregard my mention of documentation earlier, since those are Legacy Telemetry docs.

Priority: -- → P2

I'll work on this.

Rationale:
Subsessions are a Legacy Telemetry concept and do not apply to Glean metrics
Metric descriptions originally adapted from Legacy Telemetry scalars still referenced subsessions, creating potential confusion for data consumers and telemetry authors

Scope:

  • Remove Legacy Telemetry subsession language from exactly 29 Glean metric descriptions across 4 metrics files:
    • browser/components/search/metrics.yaml (18 descriptions)
    • browser/modules/metrics.yaml (9 descriptions)
    • gfx/metrics.yaml (1 description)
    • netwerk/protocol/http/metrics.yaml (1 description)
  • Fix a missing word "of" in browser/components/search/metrics.yaml search widget description ("The count URI loads" -> "The count of URI loads")
  • Keep all metric identifiers, types, lifetimes, ping configurations, and telemetry mappings unchanged
  • No runtime code changes
  • Exclude Legacy Telemetry documentation from scope per Bug 2071053 comment 1

Testing:

  • Glean and YAML linting passed with 0 errors and 0 warnings on all 4 modified metrics files
  • Whole-tree Glean lint passed via ./mach lint -l glean-parser .
  • Python lint tests passed via ./mach python-test tools/lint/test/test_glean_parser.py tools/lint/test/test_yaml.py (all 3 tests passed)
  • Local verification script confirmed 0 subsession occurrences across all tracked metrics YAML files and verified exactly 29 description-only diffs with all other parsed YAML data identical to base commit 64cfaf34e56f4c82eea77d032ec592c083b5b161
  • Git diff check passed with git diff --check
  • Full Firefox compilation and runtime browser tests were not executed for this description-only patch
  • Remote try CI has not been run
Assignee: nobody → Kayano04
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8e10246528f9 https://hg.mozilla.org/integration/autoland/rev/0cd0319681f6 Don't reference subsessions in Glean metrics files r=chutten,necko-reviewers,search-reviewers,jteow,kershaw
Status: ASSIGNED → RESOLVED
Closed: 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

Creator:
Created:
Updated:
Size: