mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
fd2272eb89
commit
44e0c8ab73
@ -185,6 +185,8 @@ public:
|
|||||||
ENUM_MAX
|
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 {
|
enum class ErrorType : uint16_t {
|
||||||
eOK,
|
eOK,
|
||||||
eRequest,
|
eRequest,
|
||||||
|
@ -7255,7 +7255,8 @@
|
|||||||
"eRedirect",
|
"eRedirect",
|
||||||
"abort",
|
"abort",
|
||||||
"timeout",
|
"timeout",
|
||||||
"eTooLate"
|
"eTooLate",
|
||||||
|
"eTerminated"
|
||||||
],
|
],
|
||||||
"description": "Counts of the different ways sending a Telemetry ping can fail."
|
"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.
|
// Strings to map from XHR.errorCode to TELEMETRY_SEND_FAILURE_TYPE.
|
||||||
// Echoes XMLHttpRequestMainThread's ErrorType enum.
|
// 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 = [
|
const XHR_ERROR_TYPE = [
|
||||||
"eOK",
|
"eOK",
|
||||||
"eRequest",
|
"eRequest",
|
||||||
"eUnreachable",
|
"eUnreachable",
|
||||||
"eChannelOpen",
|
"eChannelOpen",
|
||||||
"eRedirect",
|
"eRedirect",
|
||||||
|
"eTerminated",
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user