Don't reference subsessions in Glean metrics files
Categories
(Toolkit :: Telemetry, task, P2)
Tracking
()
| 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®exp=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.
Updated•2 months ago
|
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®exp=false) should be removed from metrics.yaml. Also, you can disregard my mention of documentation earlier, since those are Legacy Telemetry docs.
Updated•1 month ago
|
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
Updated•1 month ago
|
Updated•28 days ago
|
Description
•