Bug 1766251 - Count TRR_SKIP_REASON_NATIVE_SUCCESS/FAILED once in strict mode, r=necko-reviewers,dragana

Differential Revision: https://phabricator.services.mozilla.com/D144568
This commit is contained in:
Kershaw Chang 2022-05-06 08:26:58 +00:00
parent f9c5e96acb
commit 2422b023ff

View File

@ -317,7 +317,7 @@ void AddrHostRecord::ResolveComplete() {
Telemetry::Accumulate(Telemetry::TRR_SKIP_REASON_TRR_FIRST2,
TRRService::ProviderKey(),
static_cast<uint32_t>(mTRRSkippedReason));
if (!mTRRSuccess) {
if (!mTRRSuccess && LoadNativeUsed()) {
Telemetry::Accumulate(
mNativeSuccess ? Telemetry::TRR_SKIP_REASON_NATIVE_SUCCESS
: Telemetry::TRR_SKIP_REASON_NATIVE_FAILED,
@ -359,12 +359,6 @@ void AddrHostRecord::ResolveComplete() {
if (mTRRSuccess) {
Telemetry::Accumulate(Telemetry::TRR_ATTEMPT_COUNT,
TRRService::ProviderKey(), mTrrAttempts);
} else if (LoadNativeUsed()) {
Telemetry::Accumulate(mNativeSuccess
? Telemetry::TRR_SKIP_REASON_NATIVE_SUCCESS
: Telemetry::TRR_SKIP_REASON_NATIVE_FAILED,
TRRService::ProviderKey(),
static_cast<uint32_t>(mTRRSkippedReason));
}
}
}