зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fd2272eb89
Коммит
44e0c8ab73
|
@ -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,
|
||||
|
|
|
@ -7255,7 +7255,8 @@
|
|||
"eRedirect",
|
||||
"abort",
|
||||
"timeout",
|
||||
"eTooLate"
|
||||
"eTooLate",
|
||||
"eTerminated"
|
||||
],
|
||||
"description": "Counts of the different ways sending a Telemetry ping can fail."
|
||||
},
|
||||
|
|
|
@ -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",
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче