Bug 1529016 - P1 - Collect unexpected file's name in the origin directories; r=asuth,chutten

Differential Revision: https://phabricator.services.mozilla.com/D34721

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Tung 2019-06-18 21:06:32 +00:00
parent f7ad03d42f
commit b8c27feb30
2 changed files with 22 additions and 0 deletions

View File

@ -4259,6 +4259,13 @@ nsresult QuotaManager::InitializeOrigin(PersistenceType aPersistenceType,
UNKNOWN_FILE_WARNING(leafName);
REPORT_TELEMETRY_INIT_ERR(kInternalError, Ori_UnexpectedFile);
#ifdef NIGHTLY_BUILD
Telemetry::ScalarSetMaximum(
Telemetry::ScalarID::QM_ORIGIN_DIRECTORY_UNEXPECTED_FILENAME,
leafName, 1);
#endif
RECORD_IN_NIGHTLY(statusKeeper, NS_ERROR_UNEXPECTED);
CONTINUE_IN_NIGHTLY_RETURN_IN_OTHERS(NS_ERROR_UNEXPECTED);
}

View File

@ -3777,6 +3777,21 @@ networking:
record_in_processes:
- 'main'
# The following section is for quotaManager
qm:
origin_directory_unexpected_filename:
bug_numbers:
- 1529016
description: >
Keys are the filenames of unexpected files in the profile's origin directories.
expires: "70"
keyed: true
kind: uint
notification_emails:
- ttung@mozilla.com
record_in_processes:
- 'main'
# The following section is for probes testing the Telemetry system. They will not be
# submitted in pings and are only used for testing.
telemetry.test: