Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Issue 1937063002: [NTP Snippets] Add metric for fetch error cases (Closed)

Created:
4 years, 7 months ago by mastiz
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mcwilliams+watch_chromium.org, asvitkine+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@record_article_fetch_errors_0
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Snippets] Add metrics for error cases A new histogram is logged to capture fetch errors, namely net errors (negative) and HTTP errors (positive). BUG=607524 Committed: https://crrev.com/1fb00d360ecad6f5372294b5d7ca70ff65c61845 Cr-Commit-Position: refs/heads/master@{#391367}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added comment as suggested. #

Total comments: 1

Patch Set 3 : Adopted FetchHttpResponseOrErrorCode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher_unittest.cc View 1 2 9 chunks +20 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (8 generated)
mastiz
4 years, 7 months ago (2016-05-02 14:33:10 UTC) #3
Marc Treib
https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode127 components/ntp_snippets/ntp_snippets_fetcher.cc:127: -status.error()); I assume the minus is because the error ...
4 years, 7 months ago (2016-05-02 14:41:23 UTC) #4
mastiz
PTAL. https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode127 components/ntp_snippets/ntp_snippets_fetcher.cc:127: -status.error()); On 2016/05/02 14:41:22, Marc Treib wrote: > ...
4 years, 7 months ago (2016-05-02 15:11:44 UTC) #6
Marc Treib
lgtm https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode127 components/ntp_snippets/ntp_snippets_fetcher.cc:127: -status.error()); On 2016/05/02 15:11:44, mastiz wrote: > On ...
4 years, 7 months ago (2016-05-02 15:20:56 UTC) #7
mastiz
On 2016/05/02 15:20:56, Marc Treib wrote: > lgtm > > https://codereview.chromium.org/1937063002/diff/1/components/ntp_snippets/ntp_snippets_fetcher.cc > File components/ntp_snippets/ntp_snippets_fetcher.cc (right): ...
4 years, 7 months ago (2016-05-02 15:41:25 UTC) #8
mastiz
4 years, 7 months ago (2016-05-02 15:41:48 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1937063002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc File components/ntp_snippets/ntp_snippets_fetcher.cc (right): https://codereview.chromium.org/1937063002/diff/20001/components/ntp_snippets/ntp_snippets_fetcher.cc#newcode134 components/ntp_snippets/ntp_snippets_fetcher.cc:134: UMA_HISTOGRAM_SPARSE_SLOWLY("NewTabPage.Snippets.FetchResponseCode", You can actually log these two together, see ...
4 years, 7 months ago (2016-05-02 17:15:14 UTC) #11
mastiz
PTAL.
4 years, 7 months ago (2016-05-03 12:12:17 UTC) #12
Marc Treib
Still LGTM!
4 years, 7 months ago (2016-05-03 12:16:36 UTC) #13
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-05-03 14:55:08 UTC) #14
Alexei Svitkine (slow)
Please update the CL description however since it says two histograms.
4 years, 7 months ago (2016-05-03 14:55:36 UTC) #15
mastiz
On 2016/05/03 14:55:36, Alexei Svitkine wrote: > Please update the CL description however since it ...
4 years, 7 months ago (2016-05-03 19:44:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937063002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937063002/40001
4 years, 7 months ago (2016-05-03 19:45:21 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-03 21:52:39 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 21:54:23 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1fb00d360ecad6f5372294b5d7ca70ff65c61845
Cr-Commit-Position: refs/heads/master@{#391367}

Powered by Google App Engine
This is Rietveld 408576698