Open Bug 2096661 Opened 4 days ago Updated 1 day ago

Add telemetry for the success rate and reject reasons of Speculation Rules prefetch navigations

Categories

(Core :: Performance Engineering, task, P3)

task

Tracking

()

People

(Reporter: acreskey, Assigned: acreskey)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxpe])

Attachments

(1 external file)

About half of the navigations covered by a prefetch candidate are not served from the prefetch (see bug 2058701), and we can't tell why

Add a labeled counter, recorded once per eligible navigation, with a label for success and one per reject reason:

  • served
  • dry_run
  • http_error
  • network_error
  • too_large (over dom.speculation_rules.max_body_bytes)
  • canceled (other cancellations, e.g. dedupe)
  • expired
  • credentials_conflict
  • hint_mismatch (matched the No-Vary-Search hint, but not the response)
  • wait_timeout (still in flight after dom.speculation_rules.wait_timeout_ms)
Assignee: nobody → acreskey

Adds a labeled counter with served plus the reject reasons (expired,
hint_mismatch, wait_timeout, http_error, too_large, network_error, canceled,
dry_run, ...), counted once per eligible navigation.

Attachment #9688831 - Attachment description: Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers → WIP: Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers
See Also: → 2097826
Attachment #9688831 - Attachment description: WIP: Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers → Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers
Attachment #9688831 - Attachment description: Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers → WIP: Bug 2096661 - Record why eligible Speculation Rules prefetch navigations are not served. r?sunil,sning,#necko-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: