google-nomulus/java/google/registry/dns
guyben 8cfb748316 Remove TLD @Parameter from inside the DnsMetrics
Currently, the TLD is a "hidden" part of the metric - we record it, but by looking at the call site you can't see that we record it.

Also, it's injected from the query / POST parameter, so we might not even be aware of what the value is and it might not be the value we wanted.

Instead, making it explicit in the Metric call. That way it's also more similar to the "logging" statements that record the same data but have to explicitly output the TLD.

It also makes the tests better, as we test that we indeed record the correct TLD

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229550115
2019-01-17 19:12:41 -05:00
..
writer Make loadByForeignKey() and related methods return Optional 2018-12-14 11:24:49 -05:00
BUILD Update dependencies to satisfy strictness and remove -jpl_strict_deps feature 2018-09-14 21:33:08 -04:00
DnsConstants.java Add metric for DNS UPDATE latency 2018-02-20 15:54:15 -05:00
DnsMetrics.java Remove TLD @Parameter from inside the DnsMetrics 2019-01-17 19:12:41 -05:00
DnsModule.java Consolidate all Set parameter parsing 2018-06-06 15:04:02 -04:00
DnsQueue.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
DnsWriterProxy.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
PublishDnsUpdatesAction.java Remove TLD @Parameter from inside the DnsMetrics 2019-01-17 19:12:41 -05:00
ReadDnsQueueAction.java Add the App Engine service used in the Action definition 2019-01-17 18:59:16 -05:00
RefreshDnsAction.java Add the App Engine service used in the Action definition 2019-01-17 18:59:16 -05:00