Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b9fab72 authored by lifr's avatar lifr Committed by Frank Li
Browse files

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
parent 268b4a3a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}

/**