diff options
| author | 2019-07-20 15:28:28 +0800 | |
|---|---|---|
| committer | 2019-07-20 17:50:54 +0000 | |
| commit | 2b9fab728dbe9bc3590473a68df5bdddf17cdb56 (patch) | |
| tree | 568bd9305a2ab32e6d9421070cc3797ed8afbd5a | |
| parent | 268b4a3ad414385d9fec94cf3b6053d9505177bb (diff) | |
Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.
The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.
Bug: 133111380
Test: ./out/host/linux-x86/bin/statsd_testdrive 116
Change-Id: I85acc8cb8ec4c38e95f7e97b0dd8da1294d9ceb3
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 1254f1a3afa0..f9b6219747f7 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -2871,6 +2871,9 @@ message NetworkDnsEventReported { // Additional pass-through fields opaque to statsd. // The DNS resolver Mainline module can add new fields here without requiring an OS update. optional android.stats.dnsresolver.DnsQueryEvents dns_query_events = 8 [(log_mode) = MODE_BYTES]; + + // The sample rate of DNS stats (to statsd) is 1/sampling_rate_denom. + optional int32 sampling_rate_denom = 9; } /** |