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
This commit is contained in:
lifr
2019-07-20 15:28:28 +08:00
committed by Frank Li
parent 268b4a3ad4
commit 2b9fab728d

View File

@@ -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;
}
/**