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

Commit 762eb4a2 authored by Frank Li's avatar Frank Li Committed by Luke Huang
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: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iab542b32a8a18ae0bdbd8e005c430a876f056806
Merged-In: I9d37cac0bca53b3d7c6751ca69c1d304dfe17098
(cherry picked from commit 60d4f1a5)

Change-Id: If380a730942195db91a66944f103674c539ca7ad
parent fa499f92
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5309,6 +5309,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;
}

/**