Closed Bug 1969012 Opened 2 months ago Closed 2 months ago

Additional telemetry for link previews: labs options and about pages

Categories

(Core :: Machine Learning, enhancement)

enhancement
Points:
3

Tracking

()

VERIFIED FIXED
141 Branch
Tracking Status
firefox140 + verified
firefox141 --- verified

People

(Reporter: vsabino, Assigned: txia)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

Attachments

(2 files)

  1. Record additional metrics to determine user settings (they should always be populated, independently of the user changing the settings on that session):
    genai.linkpreview.ai_optin
    genai.linkpreview.key_points
    genai.linkpreview.shortcut

  2. Add an extra key on option on labs_checkbox event to differentiate between the checkboxes.

  3. Add an extra key tab on start, fetch, generate, card_link, card_close and key_points_toggle that identifies if he user is in about:home or about:newtab.

See spreadsheet for details

Blocks: 1943389
Points: --- → 3
Whiteboard: [genai]

[Tracking Requested - why for this release]: we added some new link preview shortcuts, opt-in functionality for 140 experiment that we want to measure how users interact

The bug is marked as tracked for firefox140 (beta). However, the bug still isn't assigned.

:tarek, could you please find an assignee for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(tziade)
Assignee: nobody → txia
Attachment #9491614 - Attachment description: WIP: Bug 1969012 - Additional telemetry for link previews: labs options and about pages → Bug 1969012 - Additional telemetry for link previews: labs options and about pages - r=Mardak
Status: NEW → ASSIGNED
Pushed by elee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/99a18410c9f2 https://hg.mozilla.org/integration/autoland/rev/ed7d071d34e4 Additional telemetry for link previews: labs options and about pages - r=Mardak,firefox-ai-ml-reviewers
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ece16c98bc08 https://hg.mozilla.org/integration/autoland/rev/72fb14658500 Revert "Bug 1969012 - Additional telemetry for link previews: labs options and about pages - r=Mardak,firefox-ai-ml-reviewers" for causing bc failures on browser_link_preview_telemetry.js

Backed out for causing bc failures on browser_link_preview_telemetry.js

Push with failures

Failure log

Backout link

Flags: needinfo?(txia)
Pushed by elee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ab4a6dc6b018 https://hg.mozilla.org/integration/autoland/rev/e41a39280f3d Additional telemetry for link previews: labs options and about pages - r=Mardak,firefox-ai-ml-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Duplicate of this bug: 1965584

:txia/:Mardak could you please add a beta uplift request when you're ready.

Flags: needinfo?(tziade) → needinfo?(edilee)
  • add telemetry "tab" field for start, cardlink, cardClose
  • add labsCheckbox event for shift, shift_option, long_press, key_points, link_previews
  • add _getTabContextValue to get the filepath for any about: pages
  • update optin telemetry
  • add metrics
  • shift_alt and long_press name normalization
  • add key_points (boolean) to card_link
  • update test to test against blank
  • refactor _getTabContextValue
  • add tests for new metric and prefChanged

Original Revision: https://phabricator.services.mozilla.com/D251779

Attachment #9493040 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: Without additional visibility provided by telemetry metrics and events in this patch, we'd have limited data to show value of features shipped for 140 experiment for Link Preview. This could contribute to missed signals about possible regressions in end-user experiences.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Trigger link preview(shift+hover url) after setting browser.ml.linkPreview.enabled to true and verify glean data
  • Risk associated with taking this patch: Low. We only introduce new telemetry calls around an existing feature. No logic changes to link preview rendering.
  • Explanation of risk level: Adding telemtry does not alter user-visible behavior. Automated tests validate glean data, and manual QE is straightforward.
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+
Attachment #9493040 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140]
QA Contact: cgeorgiu
Flags: needinfo?(txia)
Flags: needinfo?(edilee)

I've verified this issue as fixed (based on the info provided in comment 0) using Beta 140.0b6 and latest Nightly 141.0a1 under Win 11, macOS 15 and Ubuntu 24.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift] [qa-ver-needed-c141/b140] → [uplift] [qa-ver-done-c141/b140]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: