Add Sentry to capture exceptions and console.error messages, add a checkbox in preference to enable/disable error reporting (#3252)

This commit is contained in:
chh authored and GitHub committed 2021-07-08 19:22:12 +03:00
1 parent 3b31dadf19
commit 05b1a2fc5d
14 files changed
+513 -71

No files matched your search

@@ -106,6 +106,19 @@ const allowTelemetry: PreferenceDescription<boolean> = {
},
};
const allowErrorReporting: PreferenceDescription<boolean> = {
fromStore(val) {
return val ?? true;
},
toStore(val) {
if (val === true) {
return undefined;
}
return val;
},
};
const downloadMirror: PreferenceDescription<string> = {
fromStore(val) {
return val ?? "default";
@@ -227,6 +240,7 @@ export const DESCRIPTORS = {
localeTimezone,
allowUntrustedCAs,
allowTelemetry,
allowErrorReporting,
downloadMirror,
downloadKubectlBinaries,
downloadBinariesPath,