[VL] Add histogram to track addition of 404 VisitRows [chromium/src : main]

0 views
Skip to first unread message

Svend Larsen (Gerrit)

unread,
Sep 23, 2025, 3:38:49 PM (3 days ago) Sep 23
to manuk hovanesian, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from manuk hovanesian

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • manuk hovanesian
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a
Gerrit-Change-Number: 6976394
Gerrit-PatchSet: 2
Gerrit-Owner: Svend Larsen <sv...@chromium.org>
Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: manuk hovanesian <man...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Sep 2025 19:38:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

manuk hovanesian (Gerrit)

unread,
Sep 23, 2025, 6:58:10 PM (2 days ago) Sep 23
to Svend Larsen, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from Svend Larsen

manuk hovanesian added 2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
manuk hovanesian . resolved

lgtm

Commit Message
Line 14, Patchset 2 (Latest):function because AddPageVisit() is called in a loop for redirects, and
manuk hovanesian . unresolved

should include in histograms.xml that this is recorded multiple times if 1 user-click results in multiple redirect visits.

also, would the metric be more interpretable if we only recorded `VisitIs404` for the final visit in the redirect chain?
e.g. a.com -> b.com -> ... -> z.com -> 404 would record 25 successes, and 1 404; which would be misleading.

Open in Gerrit

Related details

Attention is currently required from:
  • Svend Larsen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a
    Gerrit-Change-Number: 6976394
    Gerrit-PatchSet: 2
    Gerrit-Owner: Svend Larsen <sv...@chromium.org>
    Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Svend Larsen <sv...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Sep 2025 22:57:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    manuk hovanesian (Gerrit)

    unread,
    Sep 23, 2025, 7:01:03 PM (2 days ago) Sep 23
    to Svend Larsen, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
    Attention needed from Svend Larsen

    manuk hovanesian voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Svend Larsen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a
    Gerrit-Change-Number: 6976394
    Gerrit-PatchSet: 2
    Gerrit-Owner: Svend Larsen <sv...@chromium.org>
    Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Svend Larsen <sv...@chromium.org>
    Gerrit-Comment-Date: Tue, 23 Sep 2025 23:00:53 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Svend Larsen (Gerrit)

    unread,
    Sep 25, 2025, 11:15:12 AM (19 hours ago) Sep 25
    to manuk hovanesian, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org

    Svend Larsen added 1 comment

    Commit Message
    Line 14, Patchset 2:function because AddPageVisit() is called in a loop for redirects, and
    manuk hovanesian . unresolved

    should include in histograms.xml that this is recorded multiple times if 1 user-click results in multiple redirect visits.

    also, would the metric be more interpretable if we only recorded `VisitIs404` for the final visit in the redirect chain?
    e.g. a.com -> b.com -> ... -> z.com -> 404 would record 25 successes, and 1 404; which would be misleading.

    Svend Larsen

    should include in histograms.xml that this is recorded multiple times if 1 user-click results in multiple redirect visits.

    Done!

    would the metric be more interpretable if we only recorded `VisitIs404` for the final visit in the redirect chain?
    e.g. a.com -> b.com -> ... -> z.com -> 404 would record 25 successes, and 1 404; which would be misleading.

    My goal is to measure the impact on table insertions of making 404s eligible for History, rather than to get a sense of how many navigations end in 404, so I think emitting for each redirect is a better measure. But I think I should change the histogram from `VisitIs404` to `VisitAddedDueTo404`, and then for redirects in chains that end in a 404, I should emit `true`, since the redirect visits otherwise wouldn't have been saved to History. I'll upload a new patchset doing that soon.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a
    Gerrit-Change-Number: 6976394
    Gerrit-PatchSet: 2
    Gerrit-Owner: Svend Larsen <sv...@chromium.org>
    Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 15:15:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: manuk hovanesian <man...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Svend Larsen (Gerrit)

    unread,
    Sep 25, 2025, 12:29:13 PM (18 hours ago) Sep 25
    to manuk hovanesian, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
    Attention needed from manuk hovanesian

    Svend Larsen added 1 comment

    Commit Message
    Line 14, Patchset 2:function because AddPageVisit() is called in a loop for redirects, and
    manuk hovanesian . unresolved

    should include in histograms.xml that this is recorded multiple times if 1 user-click results in multiple redirect visits.

    also, would the metric be more interpretable if we only recorded `VisitIs404` for the final visit in the redirect chain?
    e.g. a.com -> b.com -> ... -> z.com -> 404 would record 25 successes, and 1 404; which would be misleading.

    Svend Larsen

    should include in histograms.xml that this is recorded multiple times if 1 user-click results in multiple redirect visits.

    Done!

    would the metric be more interpretable if we only recorded `VisitIs404` for the final visit in the redirect chain?
    e.g. a.com -> b.com -> ... -> z.com -> 404 would record 25 successes, and 1 404; which would be misleading.

    My goal is to measure the impact on table insertions of making 404s eligible for History, rather than to get a sense of how many navigations end in 404, so I think emitting for each redirect is a better measure. But I think I should change the histogram from `VisitIs404` to `VisitAddedDueTo404`, and then for redirects in chains that end in a 404, I should emit `true`, since the redirect visits otherwise wouldn't have been saved to History. I'll upload a new patchset doing that soon.

    Svend Larsen

    for redirects in chains that end in a 404, I should emit true, since the redirect visits otherwise wouldn't have been saved to History. I'll upload a new patchset doing that soon.

    I updated the histogram name and description, but it turns out the code was already doing the new behavior! Since I was surprised, I added a unit test (which I should have done in the first place) and more comments. PTAL again.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • manuk hovanesian
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a
    Gerrit-Change-Number: 6976394
    Gerrit-PatchSet: 5
    Gerrit-Owner: Svend Larsen <sv...@chromium.org>
    Gerrit-Reviewer: manuk hovanesian <man...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: manuk hovanesian <man...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:29:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Svend Larsen <sv...@chromium.org>
    Comment-In-Reply-To: manuk hovanesian <man...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages