Closed Bug 1914480 Opened 5 months ago Closed 5 months ago

Telemetry adjustments for add image flow in PDFs

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 131
defect

Tracking

()

VERIFIED FIXED
131 Branch
Tracking Status
firefox130 --- verified
firefox131 --- verified

People

(Reporter: vsabino, Assigned: calixte)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

We need to review some of the keys that are being passed in telemetry related to the PDF add image flow.

  • Event image_added:
    • the descriptions look reversed in the documentation
    • I'm not seeing alt_text_type in the data collected
    • the number of image added events for a client/day is sometimes higher than icon clicks, which needs to be investigated
  • Metric alt_text_edit:
    • I'm not seeing ask_to_edit in the data collected.
Severity: -- → S3
Type: task → defect
Priority: -- → P2

About having a number of image added events higher than icon clicks: it's possible to add an image in copying and pasting it.

Assignee: nobody → cdenizet
Priority: P2 → P1
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b410ec24c6ae Telemetry adjustments for add image flow in PDFs r=marco

I just realized that when you click the image icon the "+ Add image" dropdown stays on the screen even after the image is added, so I think that's the main reason for the lower number of icon clicks when people are adding multiple images.

A couple other events that seem to be firing inconsistently:

  • pdfjs.image.alt_text.image_status_label_displayed: I'm seeing the event twice between clicking add image and image added, but if I click on the image later I don't see the event. I'd expect it to show only at the end of the image add flow and when the user clicks on image afterwards.
  • pdfjs.image.alt_text.model_result: this is not firing every time the model runs. I saw it once but I'm not even sure what it was attached to.

And do we have any events for when the user enables or disables automatic generation? The UX changed a bit as I was writing the spec so I'm not sure what happened to those "settings" events. Since we have the toggle on the alt text modal we should have telemetry for it.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch

(In reply to Vanessa Sabino from comment #6)

A couple other events that seem to be firing inconsistently:

  • pdfjs.image.alt_text.image_status_label_displayed: I'm seeing the event twice between clicking add image and image added, but if I click on the image later I don't see the event. I'd expect it to show only at the end of the image add flow and when the user clicks on image afterwards.

Ok I'll fix that.

  • pdfjs.image.alt_text.model_result: this is not firing every time the model runs. I saw it once but I'm not even sure what it was attached to.

It's triggered every time a guess is done:
https://searchfox.org/mozilla-central/source/toolkit/components/pdfjs/content/PdfjsParent.sys.mjs#180-187

And do we have any events for when the user enables or disables automatic generation? The UX changed a bit as I was writing the spec so I'm not sure what happened to those "settings" events. Since we have the toggle on the alt text modal we should have telemetry for it.

We've "settings_ai_generation_check" which is used when the user changes the toggle in the settings UI.
But we haven't when it's changed from the alt-text dialog. Should we add a new event ?

Flags: needinfo?(vsabino)
No longer depends on: 1915692
Flags: needinfo?(vsabino)
Blocks: 1916401
Attachment #9422237 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: Low
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Check that the metrics are present
  • Risk associated with taking this patch: low
  • Explanation of risk level: Self contained, small patch and only updates basic telemetry stuff
  • String changes made/needed: No
  • Is Android affected?: no
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Verified as fixed in our latest 131.0b4 (64-bit)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Attachment #9422237 - Flags: approval-mozilla-release? → approval-mozilla-release+

This fix will be included in our planned 130 dot release, thanks.

This is verified as fixed in our latest Release 130.0.1 20240912074333

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: