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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user