Bug 1442700 : Label added to TELEMETRY_SEND_FAILURE_TYPE and TelemetrySend's XHR_ERROR_TYPE for eTerminated , r=chutten

MozReview-Commit-ID: 5JnGdYynRKF

--HG--
extra : rebase_source : 1dcd2dbefd60ce68a78181998c9dc224a27c735a
This commit is contained in:
akriti 2018-03-28 15:27:51 +05:30
parent fd2272eb89
commit 44e0c8ab73
3 changed files with 7 additions and 1 deletions

View File

@ -185,6 +185,8 @@ public:
ENUM_MAX
};
// Make sure that any additions done to ErrorType enum are also mirrored in
// XHR_ERROR_TYPE enum of TelemetrySend.jsm.
enum class ErrorType : uint16_t {
eOK,
eRequest,

View File

@ -7255,7 +7255,8 @@
"eRedirect",
"abort",
"timeout",
"eTooLate"
"eTooLate",
"eTerminated"
],
"description": "Counts of the different ways sending a Telemetry ping can fail."
},

View File

@ -89,12 +89,15 @@ const OVERDUE_PING_FILE_AGE = 7 * 24 * 60 * MS_IN_A_MINUTE; // 1 week
// Strings to map from XHR.errorCode to TELEMETRY_SEND_FAILURE_TYPE.
// Echoes XMLHttpRequestMainThread's ErrorType enum.
// Make sure that any additions done to XHR_ERROR_TYPE enum are also mirrored in
// TELEMETRY_SEND_FAILURE_TYPE's labels.
const XHR_ERROR_TYPE = [
"eOK",
"eRequest",
"eUnreachable",
"eChannelOpen",
"eRedirect",
"eTerminated",
];
/**