mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Upgrade appinsights (#58999)
* Upgrade appinsights * Env, global updates before starting shared process * Disable console logging from appinsights Fixes #55417 * Move workaround to helper
This commit is contained in:
11
src/bootstrap.js
vendored
11
src/bootstrap.js
vendored
@@ -217,4 +217,15 @@ exports.configurePortable = function () {
|
||||
isPortable
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
|
||||
//#region ApplicationInsights
|
||||
/**
|
||||
* Prevents appinsights from monkey patching modules.
|
||||
* This should be called before importing the applicationinsights module
|
||||
*/
|
||||
exports.avoidMonkeyPatchFromAppInsights = function () {
|
||||
process.env['APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL'] = true; // Skip monkey patching of 3rd party modules by appinsights
|
||||
global['diagnosticsSource'] = {}; // Prevents diagnostic channel (which patches "require") from initializing entirely
|
||||
};
|
||||
//#endregion
|
||||
Reference in New Issue
Block a user