We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21991c9 commit 7058411Copy full SHA for 7058411
internal/metrics/dns.go
@@ -13,6 +13,7 @@ const (
13
ResultSafeBrowsing = "safe_browsing"
14
ResultSafeSearch = "safe_search"
15
ResultParental = "parental"
16
+ ResultUnknown = "unknown"
17
)
18
19
// DNSQueries tracks DNS queries by their processing result
internal/stats/unit.go
@@ -345,7 +345,7 @@ func (u *unit) add(e *Entry) {
345
case RParental:
346
resultLabel = metrics.ResultParental
347
default:
348
- resultLabel = "unknown"
+ resultLabel = metrics.ResultUnknown
349
}
350
metrics.IncrementDNSQueryByResult(resultLabel)
351
metrics.ObserveDNSResponseTime(resultLabel, e.ProcessingTime)
0 commit comments