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

Issue 11416126: Track merged nudge sources (Closed)

Created:
8 years, 1 month ago by rlarocque
Modified:
8 years ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin
Visibility:
Public.

Description

Track merged nudge sources There's a lot of valuable information in coalesced nudges. Currently, one nudge source can overwrite another, which leaves us in the dark as to why the client behaved a certain way. In fact, today we can't even determine whether or not any coalescing was done. By logging all the coalesced sources and their payloads, we can learn a lot more about client behaviour. I'm hoping to use this to improve our notification effectiveness metrics. BUG=138613 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170549

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix type ID #

Total comments: 3

Patch Set 3 : Update name and stop sending full notification hints #

Total comments: 2

Patch Set 4 : Add comment #

Patch Set 5 : More comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -16 lines) Patch
M sync/internal_api/debug_info_event_listener.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M sync/internal_api/js_sync_manager_observer_unittest.cc View 1 chunk +16 lines, -14 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.cc View 1 2 4 chunks +14 lines, -1 line 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M sync/protocol/client_debug_info.proto View 1 2 3 4 2 chunks +24 lines, -0 lines 2 comments Download
M sync/sessions/sync_session.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
rlarocque
Tim: Here's the patch we were just discussing. I was going to send it out ...
8 years, 1 month ago (2012-11-21 21:31:50 UTC) #1
Raz Mathias
https://codereview.chromium.org/11416126/diff/3001/sync/protocol/client_debug_info.proto File sync/protocol/client_debug_info.proto (right): https://codereview.chromium.org/11416126/diff/3001/sync/protocol/client_debug_info.proto#newcode19 sync/protocol/client_debug_info.proto:19: optional string notification_hint = 2; To your question above, ...
8 years ago (2012-11-27 21:52:18 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/11416126/diff/3001/sync/sessions/sync_session.cc File sync/sessions/sync_session.cc (right): https://codereview.chromium.org/11416126/diff/3001/sync/sessions/sync_session.cc#newcode94 sync/sessions/sync_session.cc:94: // When we coalesce sessions, the sync update source ...
8 years ago (2012-11-27 23:48:47 UTC) #3
rlarocque
https://codereview.chromium.org/11416126/diff/3001/sync/sessions/sync_session.cc File sync/sessions/sync_session.cc (right): https://codereview.chromium.org/11416126/diff/3001/sync/sessions/sync_session.cc#newcode94 sync/sessions/sync_session.cc:94: // When we coalesce sessions, the sync update source ...
8 years ago (2012-11-28 00:33:58 UTC) #4
rlarocque
I've replaced the notification hint with a bool and renamed some variables. PTAL.
8 years ago (2012-11-29 01:58:00 UTC) #5
tim (not reviewing)
LGTM with nit. https://codereview.chromium.org/11416126/diff/1009/sync/protocol/client_debug_info.proto File sync/protocol/client_debug_info.proto (right): https://codereview.chromium.org/11416126/diff/1009/sync/protocol/client_debug_info.proto#newcode54 sync/protocol/client_debug_info.proto:54: repeated SourceInfo source_info = 11; sources_list ...
8 years ago (2012-11-29 19:28:04 UTC) #6
rlarocque
https://codereview.chromium.org/11416126/diff/1009/sync/protocol/client_debug_info.proto File sync/protocol/client_debug_info.proto (right): https://codereview.chromium.org/11416126/diff/1009/sync/protocol/client_debug_info.proto#newcode54 sync/protocol/client_debug_info.proto:54: repeated SourceInfo source_info = 11; On 2012/11/29 19:28:05, timsteele ...
8 years ago (2012-11-29 23:42:12 UTC) #7
rlarocque
Comment added. Tim, would you be OK with leaving the field name the same, for ...
8 years ago (2012-11-30 00:45:24 UTC) #8
tim (not reviewing)
On 2012/11/30 00:45:24, rlarocque wrote: > Comment added. > > Tim, would you be OK ...
8 years ago (2012-11-30 00:47:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/11416126/13001
8 years ago (2012-11-30 19:14:04 UTC) #10
commit-bot: I haz the power
Change committed as 170549
8 years ago (2012-11-30 21:32:25 UTC) #11
Nicolas Zea
https://chromiumcodereview.appspot.com/11416126/diff/13001/sync/protocol/client_debug_info.proto File sync/protocol/client_debug_info.proto (right): https://chromiumcodereview.appspot.com/11416126/diff/13001/sync/protocol/client_debug_info.proto#newcode58 sync/protocol/client_debug_info.proto:58: optional GetUpdatesCallerInfo caller_info = 10; out of curiosity, should ...
8 years ago (2012-11-30 21:46:37 UTC) #12
rlarocque
8 years ago (2012-11-30 21:53:09 UTC) #13
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11416126/diff/13001/sync/protocol/clie...
File sync/protocol/client_debug_info.proto (right):

https://chromiumcodereview.appspot.com/11416126/diff/13001/sync/protocol/clie...
sync/protocol/client_debug_info.proto:58: optional GetUpdatesCallerInfo
caller_info = 10;
On 2012/11/30 21:46:37, Nicolas Zea wrote:
> out of curiosity, should this field be deprecated now?

I'll admit it's a bit redundant.  This will tell us what the client actually
sent up in the previously completed sync cycle.  The newly added counters below
will tell us all the sources that were merged together to form the caller_info
that was eventually sent.  

Although it should be possible to derive caller_info from source_info, it's not
trivial.  And I can foresee sawzall queries where we might want one or the
other.  Storing both will make some queries more convenient.

I think we should keep both for now and audit these fields once the scheduler
refactor is complete.

Powered by Google App Engine
This is Rietveld 408576698