commit | e02d01c18d2a1cf8f0d759b3be07a971b8e723e7 | [log] [tgz] |
---|---|---|
author | lifr <lifr@google.com> | Tue Dec 31 17:24:57 2019 +0800 |
committer | Frank Li <lifr@google.com> | Mon Jan 06 02:28:02 2020 +0000 |
tree | c7d6fa12711a77d8d1198ff6d2305f7e5b4704c3 | |
parent | b9da5e9a8c17c3ca2af6c0c941200abbe29be0f5 [diff] |
Fill in DNS query type in DNS metric when DNS lookup hit cache - When looking up DNS in cache, Rasta and DNS statistics are required Perform statistical analysis based on the type of DNS query. The DNS stats proto shows "query type" as following: ============================================================ Without the commit: dns_query_events { dns_query_event { cache_hit: CS_FOUND latency_micros: 12 } With the commit: dns_query_events { dns_query_event { type: NS_T_AAAA <= ”DNS query type” cache_hit: CS_FOUND latency_micros: 12 } Bug: 147031435 Test: statsd_testdrive Change-Id: Iac6a6f819104247ecec65bb4134a33ddd66cfa9c
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.