Closed Bug 1660686 Opened 4 years ago Closed 4 years ago

Add some telemetry to measure how long it takes to collect printer information

Categories

(Core :: Printing: Setup, task, P1)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox81 --- fixed
firefox82 --- fixed

People

(Reporter: jwatt, Assigned: bobowen)

References

(Blocks 1 open bug)

Details

(Whiteboard: [print2020_v81])

Attachments

(2 files)

We know that there's the potential for some of the operations that collect information about the available printers for the new print UI to take a long time. To help decide how much effort we should put into caching/optimizing, it would be helpful to have some histogram telemetry to measure how badly the delays can be for the various operations. Basically we should add telemetry for the Promise returning APIs on PrinterList and the objects that can be accessed via it.

Priority: P2 → P1
Assignee: nobody → bobowencode
Status: NEW → ASSIGNED
Attachment #9172202 - Attachment description: WIP - Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt! → Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt!
Attachment #9172393 - Flags: data-review?(chutten)
Attachment #9172393 - Flags: data-review?(chutten) → data-review?(tdsmith)

Comment on attachment 9172393 [details]
Print Background Task Data Review Form.txt

Thanks!

  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, in the probe definition files and the Probe Dictionary.

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

Yes, the Firefox telemetry opt-out.

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

n/a; temporary collection

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

Category 1, technical data. The histogram keys aren't mentioned in the data collection request; the description (copied over from Phab) is:

Keys describe the task, usually the information being retrieved, current possible keys are: DefaultSettings, MarginsForPaper, Printers, NamedPrinter, NamedOrDefaultPrinter, SupportsDuplex, SupportsColor, SupportsCollation, PaperList.

These are also cat 1.

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

Default-on.

  1. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?

No.

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

Yes.

  1. Does there need to be a check-in in the future to determine whether to renew the data?

bobowen et al are responsible for renewing the collection as needed.

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

No.

Attachment #9172393 - Flags: data-review?(tdsmith) → data-review+
Attachment #9172202 - Attachment description: Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt! → Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith
Pushed by bobowencode@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ca085d770da4
Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith

emilio: thanks for looking at this, failure log is in previous comment.

Flags: needinfo?(emilio)
Attachment #9172202 - Attachment description: Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith → Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt!
Attachment #9172202 - Attachment description: Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt! → Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith
Pushed by bobowencode@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1bf9ecdd9e77
Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith
Flags: needinfo?(emilio)
Flags: needinfo?(bobowencode)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9172202 [details]
Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith

Beta/Release Uplift Approval Request

  • User impact if declined: As part of the new Print Preview UI work, we want to be able to detect long printing system API calls that might be causing poor user experience.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Relatively simple patch that adds telemetry to existing code.
  • String changes made/needed: None
Attachment #9172202 - Flags: approval-mozilla-beta?

Comment on attachment 9172202 [details]
Bug 1660686: Add telemetry for time taken in print background tasks. r=jwatt, dr=tdsmith

Approved for 81.0b5.

Attachment #9172202 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1689265
See Also: → 1694851
See Also: → 1730044
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: