bug 1453825 - add telemetry for TRR NS confirmation checks r=mcmanus

MozReview-Commit-ID: 3FAdEhlH5VI

--HG--
extra : rebase_source : fb1762a5b1863da0cbe568c087543384b2aba14a
This commit is contained in:
Daniel Stenberg 2018-04-13 00:47:45 +02:00
Родитель f0a65db504
Коммит 01a7750519
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -573,6 +573,13 @@ TRRService::CompleteLookup(nsHostRecord *rec, nsresult status, AddrInfo *aNewRRS
mRetryConfirmInterval *= 2;
}
} else {
if (mMode != MODE_TRRONLY) {
// don't accumulate trronly data here since trronly failures are
// handled above by trying again, so counting the successes here would
// skew the numbers
Telemetry::Accumulate(Telemetry::DNS_TRR_NS_VERFIFIED,
(mConfirmationState == CONFIRM_OK));
}
mRetryConfirmInterval = 1000;
}
return LOOKUP_OK;
@ -582,7 +589,7 @@ TRRService::CompleteLookup(nsHostRecord *rec, nsresult status, AddrInfo *aNewRRS
if (NS_SUCCEEDED(status)) {
LOG(("TRR verified %s to be fine!\n", newRRSet->mHostName));
} else {
LOG(("TRR says %s doesn't resove as NS!\n", newRRSet->mHostName));
LOG(("TRR says %s doesn't resolve as NS!\n", newRRSet->mHostName));
TRRBlacklist(nsCString(newRRSet->mHostName), pb, false);
}
return LOOKUP_OK;

Просмотреть файл

@ -3289,6 +3289,14 @@
"bug_numbers": [1434852],
"alert_emails": ["necko@mozilla.com", "dstenberg@mozilla.com"]
},
"DNS_TRR_NS_VERFIFIED": {
"record_in_processes": ["main"],
"expires_in_version": "never",
"kind": "boolean",
"description": "TRR managed to verify NS entry",
"bug_numbers": [1453825],
"alert_emails": ["necko@mozilla.com", "dstenberg@mozilla.com"]
},
"DNS_LOOKUP_ALGORITHM": {
"record_in_processes": ["main"],
"alert_emails": ["necko@mozilla.com", "dstenberg@mozilla.com"],