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

Issue 2862743002: Add a metric to record http response code for download requests. (Closed)

Created:
3 years, 7 months ago by xingliu
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a metric to record http response code for download requests. Currently we notice an issue according to metric data that parallel download feature has a higher SERVER_FAIL interruption type. we would like to know more details about the http response code from the server to analyze the cause. This metric only applies to download requests and will also be helpful to track general download system health. BUG=718465 Review-Url: https://codereview.chromium.org/2862743002 Cr-Commit-Position: refs/heads/master@{#469888} Committed: https://chromium.googlesource.com/chromium/src/+/503e20c58c8fdae480d5e7bbc538365f17e32fa1

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add histogram enum. #

Total comments: 2

Patch Set 3 : Fix an issue for tests, some tests don't have response headers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M content/browser/download/download_request_core.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_stats.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (33 generated)
xingliu
Hi, PTAL, thanks.
3 years, 7 months ago (2017-05-03 23:31:15 UTC) #5
xingliu
+isherman@ for histogram review, thanks.
3 years, 7 months ago (2017-05-04 00:53:46 UTC) #7
Ilya Sherman
metrics LGTM % a question: https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml#newcode13934 tools/metrics/histograms/histograms.xml:13934: +<histogram name="Download.HttpResponseCode"> Is there ...
3 years, 7 months ago (2017-05-04 06:06:50 UTC) #8
David Trainor- moved to gerrit
lgtm % Ilya's comments.
3 years, 7 months ago (2017-05-04 16:18:02 UTC) #9
xingliu
Thanks for the review, address comments. https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml#newcode13934 tools/metrics/histograms/histograms.xml:13934: +<histogram name="Download.HttpResponseCode"> On ...
3 years, 7 months ago (2017-05-04 16:52:41 UTC) #11
Ilya Sherman
https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml#newcode13934 tools/metrics/histograms/histograms.xml:13934: +<histogram name="Download.HttpResponseCode"> On 2017/05/04 16:52:41, xingliu wrote: > On ...
3 years, 7 months ago (2017-05-04 19:39:24 UTC) #12
xingliu
On 2017/05/04 19:39:24, Ilya Sherman wrote: > https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/2862743002/diff/1/tools/metrics/histograms/histograms.xml#newcode13934 ...
3 years, 7 months ago (2017-05-04 20:05:48 UTC) #13
Ilya Sherman
Metrics LGTM, thanks.
3 years, 7 months ago (2017-05-04 20:06:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862743002/20001
3 years, 7 months ago (2017-05-04 21:58:03 UTC) #17
qinmin
https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc File content/browser/download/download_request_core.cc (right): https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc#newcode254 content/browser/download/download_request_core.cc:254: RecordDownloadHttpResponseCode( I think you should do this in OnResponseCompleted ...
3 years, 7 months ago (2017-05-04 22:30:58 UTC) #19
qinmin
https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc File content/browser/download/download_request_core.cc (right): https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc#newcode254 content/browser/download/download_request_core.cc:254: RecordDownloadHttpResponseCode( On 2017/05/04 22:30:58, qinmin wrote: > I think ...
3 years, 7 months ago (2017-05-04 22:47:31 UTC) #20
xingliu
On 2017/05/04 22:47:31, qinmin wrote: > https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc > File content/browser/download/download_request_core.cc (right): > > https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc#newcode254 > ...
3 years, 7 months ago (2017-05-04 23:05:04 UTC) #21
qinmin
On 2017/05/04 23:05:04, xingliu wrote: > On 2017/05/04 22:47:31, qinmin wrote: > > > https://codereview.chromium.org/2862743002/diff/20001/content/browser/download/download_request_core.cc ...
3 years, 7 months ago (2017-05-05 15:59:23 UTC) #30
qinmin
lgtm
3 years, 7 months ago (2017-05-05 21:43:36 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862743002/40001
3 years, 7 months ago (2017-05-06 19:52:56 UTC) #46
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 19:58:16 UTC) #49
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/503e20c58c8fdae480d5e7bbc538...

Powered by Google App Engine
This is Rietveld 408576698