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

Issue 1497803004: Domain Reliability: Add sample_rate field to Beacon (Closed)

Created:
5 years ago by Deprecated (see juliatuttle)
Modified:
5 years ago
Reviewers:
jkarlin
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Domain Reliability: Add sample_rate field to Beacon Domain Reliability reports details of URL requests with a certain probability (sample rate). By including the sample rate in the beacon, the collector can estimate how many other requests (on average) were not reported. BUG=567307 Committed: https://crrev.com/ccc4ffa155c61083ee5f57cbb3e756197494b8e1 Cr-Commit-Position: refs/heads/master@{#364446}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Make requested changes #

Patch Set 3 : ...actually make sample_rate a double :P #

Total comments: 8

Patch Set 4 : Make requested changes #

Patch Set 5 : Add more sample rate tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -37 lines) Patch
M components/domain_reliability/beacon.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/domain_reliability/beacon.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/domain_reliability/config.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/domain_reliability/config.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M components/domain_reliability/context.cc View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M components/domain_reliability/context_unittest.cc View 1 2 3 4 14 chunks +160 lines, -25 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (6 generated)
Deprecated (see juliatuttle)
PTAL, jkarlin.
5 years ago (2015-12-04 18:52:29 UTC) #2
jkarlin
https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/beacon.h File components/domain_reliability/beacon.h (right): https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/beacon.h#newcode69 components/domain_reliability/beacon.h:69: // was chosen to be reported. Why inverse? Why ...
5 years ago (2015-12-07 14:57:28 UTC) #3
jkarlin
https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/context.cc File components/domain_reliability/context.cc (right): https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/context.cc#newcode83 components/domain_reliability/context.cc:83: beacon->weight = 1.0 / sample_rate; On 2015/12/07 14:57:27, jkarlin ...
5 years ago (2015-12-07 18:06:53 UTC) #4
jkarlin
Also, the description needs a bug number.
5 years ago (2015-12-07 20:00:31 UTC) #5
Deprecated (see juliatuttle)
PTAL, jkarlin. I switched to reporting sample_rate, so a lot of the comments became obsolete. ...
5 years ago (2015-12-07 20:17:57 UTC) #7
jkarlin
You haven't uploaded the updated patchset yet. Also, please update the description with your change.
5 years ago (2015-12-08 12:31:02 UTC) #8
jkarlin
https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/beacon.h File components/domain_reliability/beacon.h (right): https://codereview.chromium.org/1497803004/diff/1/components/domain_reliability/beacon.h#newcode70 components/domain_reliability/beacon.h:70: int weight; On 2015/12/07 20:17:57, ttuttle wrote: > On ...
5 years ago (2015-12-08 19:41:36 UTC) #9
Deprecated (see juliatuttle)
PTAL, jkarlin.
5 years ago (2015-12-08 19:47:49 UTC) #11
jkarlin
https://codereview.chromium.org/1497803004/diff/40001/components/domain_reliability/beacon.h File components/domain_reliability/beacon.h (right): https://codereview.chromium.org/1497803004/diff/40001/components/domain_reliability/beacon.h#newcode72 components/domain_reliability/beacon.h:72: double sample_rate; This should have been caught by a ...
5 years ago (2015-12-09 11:46:22 UTC) #12
Deprecated (see juliatuttle)
PTAL, jkarlin. This is now rebased on top of the other CL I sent you ...
5 years ago (2015-12-10 17:04:23 UTC) #13
jkarlin
lgtm!
5 years ago (2015-12-10 18:58:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1497803004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1497803004/80001
5 years ago (2015-12-10 19:24:07 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-10 20:08:56 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-10 20:09:41 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ccc4ffa155c61083ee5f57cbb3e756197494b8e1
Cr-Commit-Position: refs/heads/master@{#364446}

Powered by Google App Engine
This is Rietveld 408576698