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

Issue 336753002: Add Net.WebSocket.ResponseCode and ErrorCodes UMA (Closed)

Created:
6 years, 6 months ago by Adam Rice
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, jar+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add Net.WebSocket.ResponseCode and ErrorCodes UMA Add histograms to record the response codes seen by all WebSocket requests, and also the error codes. This will provide more insight into the reasons for WebSocket connection failures. BUG=384273 TEST=manually tested with chrome://histograms Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278339

Patch Set 1 #

Patch Set 2 : Move histograms to lower-level WebSocketBasicHandshakeStream #

Patch Set 3 : It turns out we need to count net error codes in websocket_stream.cc after all. #

Total comments: 6

Patch Set 4 : Use sprae histogram for result code. #

Total comments: 6

Patch Set 5 : Remove call to HttpUtil::MapStatusCodeForHistogram #

Patch Set 6 : Fix bogus indent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -5 lines) Patch
M net/websockets/websocket_basic_handshake_stream.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M net/websockets/websocket_stream.cc View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Adam Rice
6 years, 6 months ago (2014-06-13 09:33:26 UTC) #1
Adam Rice
6 years, 6 months ago (2014-06-13 09:33:41 UTC) #2
yhirano
lgtm
6 years, 6 months ago (2014-06-13 10:03:47 UTC) #3
Adam Rice
+asvitkine for OWNERS.
6 years, 6 months ago (2014-06-13 10:07:14 UTC) #4
Adam Rice
yhirano, I discovered it wasn't logging HTTP status codes correctly, please take another look.
6 years, 6 months ago (2014-06-13 14:44:55 UTC) #5
Adam Rice
On 2014/06/13 14:44:55, Adam Rice wrote: > yhirano, I discovered it wasn't logging HTTP status ...
6 years, 6 months ago (2014-06-17 10:02:04 UTC) #6
yhirano
Sorry for the late response. lgtm. https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_stream.cc File net/websockets/websocket_stream.cc (right): https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_stream.cc#newcode14 net/websockets/websocket_stream.cc:14: #include "net/http/http_util.h" Do ...
6 years, 6 months ago (2014-06-17 10:52:44 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_basic_handshake_stream.cc File net/websockets/websocket_basic_handshake_stream.cc (right): https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_basic_handshake_stream.cc#newcode562 net/websockets/websocket_basic_handshake_stream.cc:562: UMA_HISTOGRAM_CUSTOM_ENUMERATION( Use UMA_HISTOGRAM_SPARSE_SLOWLY() here too. It's more efficient than ...
6 years, 6 months ago (2014-06-17 15:34:27 UTC) #8
Adam Rice
https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_basic_handshake_stream.cc File net/websockets/websocket_basic_handshake_stream.cc (right): https://codereview.chromium.org/336753002/diff/40001/net/websockets/websocket_basic_handshake_stream.cc#newcode562 net/websockets/websocket_basic_handshake_stream.cc:562: UMA_HISTOGRAM_CUSTOM_ENUMERATION( On 2014/06/17 15:34:27, Alexei Svitkine wrote: > Use ...
6 years, 6 months ago (2014-06-18 01:23:19 UTC) #9
Alexei Svitkine (slow)
lgtm % comments https://codereview.chromium.org/336753002/diff/60001/net/websockets/websocket_basic_handshake_stream.cc File net/websockets/websocket_basic_handshake_stream.cc (right): https://codereview.chromium.org/336753002/diff/60001/net/websockets/websocket_basic_handshake_stream.cc#newcode564 net/websockets/websocket_basic_handshake_stream.cc:564: "Net.WebSocket.ResponseCode", Indent 2 more or don't ...
6 years, 6 months ago (2014-06-18 16:50:41 UTC) #10
Adam Rice
https://codereview.chromium.org/336753002/diff/60001/net/websockets/websocket_basic_handshake_stream.cc File net/websockets/websocket_basic_handshake_stream.cc (right): https://codereview.chromium.org/336753002/diff/60001/net/websockets/websocket_basic_handshake_stream.cc#newcode564 net/websockets/websocket_basic_handshake_stream.cc:564: "Net.WebSocket.ResponseCode", On 2014/06/18 16:50:41, Alexei Svitkine wrote: > Indent ...
6 years, 6 months ago (2014-06-19 02:24:07 UTC) #11
Adam Rice
The CQ bit was checked by ricea@chromium.org
6 years, 6 months ago (2014-06-19 02:28:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/336753002/100001
6 years, 6 months ago (2014-06-19 02:30:35 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 12:05:52 UTC) #14
Message was sent while issue was closed.
Change committed as 278339

Powered by Google App Engine
This is Rietveld 408576698