commit | 1289a07cf9db01caa71a106110f368ec3c7a4293 | [log] [tgz] |
---|---|---|
author | lifr <lifr@google.com> | Thu Apr 08 20:42:53 2021 +0800 |
committer | lifr <lifr@google.com> | Wed Apr 21 19:11:45 2021 +0800 |
tree | 8b01b073db9a5dde36deb15cc0f2d39a76b33895 | |
parent | 8f58a580d8e6b316c2865e2d0a3cdf7a1f53c7a8 [diff] |
Update the default sampling flag of DNS resolver metrics events The sample rate of DNS resolver metrics events depends on Experiment flag and default sampling flag. Currently, the sampling experiment has been completed. Therefore update the new default sampling flag to reduce the metrics event size. 1. Current default sampling rate: DEFAULT_SUBSAMPLING_MAP[] = "default:1 0:100 7:10 metrics data size: 170k byte per device 2. Old Experiment: DEFAULT_SUBSAMPLING_MAP[] = "default:5 0:300 2:80 7:80" metrics data size: 11k byte per device 3. New default sampling rate: DEFAULT_SUBSAMPLING_MAP[] = "default:8 0:400 2:110 7:110" metrics data size: 7.9k byte per device 4. New Experiment:(including the temporary fix of b/185097438) DEFAULT_SUBSAMPLING_MAP[] = "default:8 0:400 2:110 4:110 7:110" metrics data size: 7.9k byte per device Because there is already a solution for b/185097438 in the code. Therefore, what this commit will do is item3 to reduce the size of the event. Bug: 184830442 Test: atest resolv_unit_test Change-Id: I3c0ab4a4504dfd5f8c789348587de33e01951920
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.