Closed Bug 1826188 Opened 2 years ago Closed 1 years ago

GeckoView Window.Print Failure Telemetry

Categories

(GeckoView :: General, enhancement, P1)

All
Android
enhancement

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: olivia, Assigned: olivia)

References

Details

(Whiteboard: [geckoview:m114][geckoview:m115])

Attachments

(2 files, 2 obsolete files)

We would like to capture the error conditions on window.print to know more on how well the feature is performing. However, the error conditions mostly happen on the Java side and Glean is not connected in Java (bug 1753467).

One workaround idea for one of the error conditions is to include the state of the failure in the message from Java back to JavaScript, where we do have access to Glean.

Idea to send telemetry on the PDF generation error condition without performing it from the Java side:

  • We could adjust the message from the GeckoSession to state that PDF generation completed exceptionally, which covers a lot of the possible error conditions (there are more, but they happen much later during printing and this is a primary place for failure).
  • This message is picked up in the GeckoViewNavigation and passed to the PrintDelegate actor, which does have access to Glean.
  • We do have some existing telemetry on PDF generation failure rates, but it relates more to "Saving as PDF" directly and not preparing a PDF for printing.
Summary: Window.Print Failure Telemetry → GeckoView Window.Print Failure Telemetry
See Also: → 1809915
Whiteboard: [geckoview:m114?]
See Also: → 1829217
Assignee: nobody → ohall
Priority: P2 → P1
Whiteboard: [geckoview:m114?] → [geckoview:m114]

This bug adds in some additional telemetry for window.print on GeckoView
to report error conditions and if the Android print dialog successfully
opens.

This bug adds in some additional telemetry for window.print on GeckoView
to report error conditions and if the Android print dialog successfully
opens.

Attachment #9331492 - Attachment is obsolete: true

This bug adds in some additional telemetry for window.print on GeckoView
to report error conditions and if the Android print dialog successfully
opens.

Attachment #9331490 - Attachment is obsolete: true
Attachment #9331496 - Flags: data-review?(royang)

Comment on attachment 9331496 [details]
Data-Review-Window.Print.md

DATA COLLECTION REVIEW RESPONSE:

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, through the metrics.yaml file and the Glean Dictionary.

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

N/A, collection to be removed or renewed by version 124

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction data

  1. Is the data collection request for default-on or default-off?

Default on for all channels.

  1. Does the instrumentation include the addition of any new identifiers?

No

  1. Is the data collection covered by the existing Firefox privacy notice?

Yes

  1. Does the data collection use a third-party collection tool?

No

Result: data-review+

Attachment #9331496 - Flags: data-review?(royang) → data-review+
Whiteboard: [geckoview:m114] → [geckoview:m114][geckoview:m115]
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06d2557a850f Additional GeckoView Print Telemetry r=geckoview-reviewers,amejiamarmol,owlish
Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
See Also: → 1871203
Component: Core → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: