@microsoft/applicationinsights-web-basic 3.0.1-nightly3.2304-41 → 3.0.1-nightly3.2305-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/es5/{aib.3.0.1-nightly3.2304-41.cjs.js → aib.3.0.1-nightly3.2305-01.cjs.js} +658 -159
- package/browser/es5/aib.3.0.1-nightly3.2305-01.cjs.js.map +1 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.cjs.min.js +6 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.cjs.min.js.map +1 -0
- package/browser/es5/{aib.3.0.1-nightly3.2304-41.gbl.js → aib.3.0.1-nightly3.2305-01.gbl.js} +658 -159
- package/browser/es5/aib.3.0.1-nightly3.2305-01.gbl.js.map +1 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.gbl.min.js +6 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.gbl.min.js.map +1 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.integrity.json +66 -0
- package/browser/es5/{aib.3.0.1-nightly3.2304-41.js → aib.3.0.1-nightly3.2305-01.js} +658 -159
- package/browser/es5/aib.3.0.1-nightly3.2305-01.js.map +1 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.min.js +6 -0
- package/browser/es5/aib.3.0.1-nightly3.2305-01.min.js.map +1 -0
- package/browser/es5/aib.3.cjs.js +657 -158
- package/browser/es5/aib.3.cjs.js.map +1 -1
- package/browser/es5/aib.3.cjs.min.js +2 -2
- package/browser/es5/aib.3.cjs.min.js.map +1 -1
- package/browser/es5/aib.3.gbl.js +657 -158
- package/browser/es5/aib.3.gbl.js.map +1 -1
- package/browser/es5/aib.3.gbl.min.js +2 -2
- package/browser/es5/aib.3.gbl.min.js.map +1 -1
- package/browser/es5/aib.3.js +657 -158
- package/browser/es5/aib.3.js.map +1 -1
- package/browser/es5/aib.3.min.js +2 -2
- package/browser/es5/aib.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-web-basic.js +657 -158
- package/dist/es5/applicationinsights-web-basic.js.map +1 -1
- package/dist/es5/applicationinsights-web-basic.min.js +2 -2
- package/dist/es5/applicationinsights-web-basic.min.js.map +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/index.js +1 -1
- package/dist-es5/index.js.map +1 -1
- package/package.json +6 -5
- package/types/applicationinsights-web-basic.d.ts +11 -2
- package/types/applicationinsights-web-basic.namespaced.d.ts +11 -2
- package/browser/es5/aib.3.0.1-nightly3.2304-41.cjs.js.map +0 -1
- package/browser/es5/aib.3.0.1-nightly3.2304-41.cjs.min.js +0 -6
- package/browser/es5/aib.3.0.1-nightly3.2304-41.cjs.min.js.map +0 -1
- package/browser/es5/aib.3.0.1-nightly3.2304-41.gbl.js.map +0 -1
- package/browser/es5/aib.3.0.1-nightly3.2304-41.gbl.min.js +0 -6
- package/browser/es5/aib.3.0.1-nightly3.2304-41.gbl.min.js.map +0 -1
- package/browser/es5/aib.3.0.1-nightly3.2304-41.integrity.json +0 -66
- package/browser/es5/aib.3.0.1-nightly3.2304-41.js.map +0 -1
- package/browser/es5/aib.3.0.1-nightly3.2304-41.min.js +0 -6
- package/browser/es5/aib.3.0.1-nightly3.2304-41.min.js.map +0 -1
package/dist-es5/index.js
CHANGED
package/dist-es5/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { DEFAULT_BREEZE_PATH, parseConnectionString } from \"@microsoft/applicationinsights-common\";\r\nimport { AppInsightsCore, cfgDfValidate, createDynamicConfig, onConfigChange, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nimport { isNullOrUndefined, objDefine, throwError } from \"@nevware21/ts-utils\";\r\nimport { _DYN_CONNECTION_STRING, _DYN_INSTRUMENTATION_KEY } from \"./__DynamicConstants\";\r\nvar defaultConfigValues = {\r\n diagnosticLogInterval: cfgDfValidate(_chkDiagLevel, 10000)\r\n};\r\nfunction _chkDiagLevel(value) {\r\n // Make sure we have a value > 0\r\n return value && value > 0;\r\n}\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n var _config;\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n (isNullOrUndefined(config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]) && isNullOrUndefined(config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]))) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n // Define _self.config\r\n objDefine(_self, \"config\", {\r\n g: function () { return _config; }\r\n });\r\n _initialize();\r\n _self.initialize = _initialize;\r\n proxyFunctions(_self, core, [\r\n \"track\",\r\n \"flush\",\r\n \"pollInternalLogs\",\r\n \"stopPollingInternalLogs\",\r\n \"unload\",\r\n \"getPlugin\",\r\n \"addPlugin\",\r\n \"evtNamespace\",\r\n \"addUnloadCb\",\r\n \"onCfgChange\"\r\n ]);\r\n function _initialize() {\r\n var cfgHandler = createDynamicConfig(config || {}, defaultConfigValues);\r\n _config = cfgHandler.cfg;\r\n core.addUnloadHook(onConfigChange(cfgHandler, function () {\r\n if (_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]) {\r\n var cs = parseConnectionString(_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]);\r\n var ingest = cs.ingestionendpoint;\r\n _config.endpointUrl = ingest ? (ingest + DEFAULT_BREEZE_PATH) : _config.endpointUrl; // only add /v2/track when from connectionstring\r\n _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */] = cs.instrumentationkey || _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\r\n }\r\n }));\r\n // initialize core\r\n core.initialize(_config, [new Sender()]);\r\n }\r\n });\r\n }\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n *\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.initialize = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Send a manually constructed custom event\r\n *\r\n * @param item\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Immediately send all batched telemetry\r\n * @param [async=true]\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.pollInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.stopPollingInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered\r\n * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous\r\n * unload call return `true` stating that all plugins reported that they also unloaded, the recommended\r\n * approach is to create a new instance and initialize that instance.\r\n * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable\r\n * to successfully remove any global references or they may just be completing the unload process asynchronously.\r\n */\r\n ApplicationInsights.prototype.unload = function (isAsync, unloadComplete) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Find and return the (first) plugin with the specified identifier if present\r\n * @param pluginIdentifier\r\n */\r\n ApplicationInsights.prototype.getPlugin = function (pluginIdentifier) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add a new plugin to the installation\r\n * @param plugin - The new plugin to add\r\n * @param replaceExisting - should any existing plugin be replaced\r\n * @param doAsync - Should the add be performed asynchronously\r\n */\r\n ApplicationInsights.prototype.addPlugin = function (plugin, replaceExisting, doAsync, addCb) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Returns the unique event namespace that should be used\r\n */\r\n ApplicationInsights.prototype.evtNamespace = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add an unload handler that will be called when the SDK is being unloaded\r\n * @param handler - the handler\r\n */\r\n ApplicationInsights.prototype.addUnloadCb = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Watches and tracks changes for accesses to the current config, and if the accessed config changes the\r\n * handler will be recalled.\r\n * @param handler\r\n * @returns A watcher handler instance that can be used to remove itself when being unloaded\r\n */\r\n ApplicationInsights.prototype.onCfgChange = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n return ApplicationInsights;\r\n}());\r\nexport { ApplicationInsights };\r\nexport { AppInsightsCore, arrForEach, isNullOrUndefined, throwError, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nexport { SeverityLevel } from \"@microsoft/applicationinsights-common\";\r\nexport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { DEFAULT_BREEZE_PATH, parseConnectionString } from \"@microsoft/applicationinsights-common\";\r\nimport { AppInsightsCore, cfgDfValidate, createDynamicConfig, onConfigChange, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nimport { isNullOrUndefined, objDefine, throwError } from \"@nevware21/ts-utils\";\r\nimport { _DYN_CONNECTION_STRING, _DYN_INSTRUMENTATION_KEY } from \"./__DynamicConstants\";\r\nvar defaultConfigValues = {\r\n diagnosticLogInterval: cfgDfValidate(_chkDiagLevel, 10000)\r\n};\r\nfunction _chkDiagLevel(value) {\r\n // Make sure we have a value > 0\r\n return value && value > 0;\r\n}\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n var _config;\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n (isNullOrUndefined(config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */]) && isNullOrUndefined(config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]))) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n // Define _self.config\r\n objDefine(_self, \"config\", {\r\n g: function () { return _config; }\r\n });\r\n _initialize();\r\n _self.initialize = _initialize;\r\n proxyFunctions(_self, core, [\r\n \"track\",\r\n \"flush\",\r\n \"pollInternalLogs\",\r\n \"stopPollingInternalLogs\",\r\n \"unload\",\r\n \"getPlugin\",\r\n \"addPlugin\",\r\n \"evtNamespace\",\r\n \"addUnloadCb\",\r\n \"onCfgChange\"\r\n ]);\r\n function _initialize() {\r\n var cfgHandler = createDynamicConfig(config || {}, defaultConfigValues);\r\n _config = cfgHandler.cfg;\r\n core.addUnloadHook(onConfigChange(cfgHandler, function () {\r\n if (_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]) {\r\n var cs = parseConnectionString(_config[_DYN_CONNECTION_STRING /* @min:%2econnectionString */]);\r\n var ingest = cs.ingestionendpoint;\r\n _config.endpointUrl = ingest ? (ingest + DEFAULT_BREEZE_PATH) : _config.endpointUrl; // only add /v2/track when from connectionstring\r\n _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */] = cs.instrumentationkey || _config[_DYN_INSTRUMENTATION_KEY /* @min:%2einstrumentationKey */];\r\n }\r\n }));\r\n // initialize core\r\n core.initialize(_config, [new Sender()]);\r\n }\r\n });\r\n }\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n *\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.initialize = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Send a manually constructed custom event\r\n *\r\n * @param item\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Immediately send all batched telemetry\r\n * @param [async=true]\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.pollInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.stopPollingInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered\r\n * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous\r\n * unload call return `true` stating that all plugins reported that they also unloaded, the recommended\r\n * approach is to create a new instance and initialize that instance.\r\n * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable\r\n * to successfully remove any global references or they may just be completing the unload process asynchronously.\r\n * @param isAsync - Can the unload be performed asynchronously (default)\r\n * @param unloadComplete - An optional callback that will be called once the unload has completed\r\n * @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the\r\n * unload. Defaults to 5 seconds.\r\n * @return Nothing or if occurring asynchronously a [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)\r\n * which will be resolved once the unload is complete, the [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)\r\n * will only be returned when no callback is provided and isAsync is true\r\n */\r\n ApplicationInsights.prototype.unload = function (isAsync, unloadComplete, cbTimeout) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Find and return the (first) plugin with the specified identifier if present\r\n * @param pluginIdentifier\r\n */\r\n ApplicationInsights.prototype.getPlugin = function (pluginIdentifier) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add a new plugin to the installation\r\n * @param plugin - The new plugin to add\r\n * @param replaceExisting - should any existing plugin be replaced\r\n * @param doAsync - Should the add be performed asynchronously\r\n */\r\n ApplicationInsights.prototype.addPlugin = function (plugin, replaceExisting, doAsync, addCb) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Returns the unique event namespace that should be used\r\n */\r\n ApplicationInsights.prototype.evtNamespace = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add an unload handler that will be called when the SDK is being unloaded\r\n * @param handler - the handler\r\n */\r\n ApplicationInsights.prototype.addUnloadCb = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Watches and tracks changes for accesses to the current config, and if the accessed config changes the\r\n * handler will be recalled.\r\n * @param handler\r\n * @returns A watcher handler instance that can be used to remove itself when being unloaded\r\n */\r\n ApplicationInsights.prototype.onCfgChange = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n return ApplicationInsights;\r\n}());\r\nexport { ApplicationInsights };\r\nexport { AppInsightsCore, arrForEach, isNullOrUndefined, throwError, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nexport { SeverityLevel } from \"@microsoft/applicationinsights-common\";\r\nexport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;8DA2FM,CAAC;;;;;+BACwB;AAC/B;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-web-basic",
|
|
3
|
-
"version": "3.0.1-nightly3.
|
|
3
|
+
"version": "3.0.1-nightly3.2305-01",
|
|
4
4
|
"description": "Microsoft Application Insights Javascript SDK core and channel",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
56
56
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
57
|
-
"@microsoft/applicationinsights-common": "3.0.1-nightly3.
|
|
58
|
-
"@microsoft/applicationinsights-channel-js": "3.0.1-nightly3.
|
|
59
|
-
"@microsoft/applicationinsights-core-js": "3.0.1-nightly3.
|
|
60
|
-
"@nevware21/ts-utils": ">= 0.9.
|
|
57
|
+
"@microsoft/applicationinsights-common": "3.0.1-nightly3.2305-01",
|
|
58
|
+
"@microsoft/applicationinsights-channel-js": "3.0.1-nightly3.2305-01",
|
|
59
|
+
"@microsoft/applicationinsights-core-js": "3.0.1-nightly3.2305-01",
|
|
60
|
+
"@nevware21/ts-utils": ">= 0.9.5 < 2.x",
|
|
61
|
+
"@nevware21/ts-async": ">= 0.2.4 < 2.x"
|
|
61
62
|
},
|
|
62
63
|
"license": "MIT",
|
|
63
64
|
"publishConfig": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.1-nightly3.
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.1-nightly3.2305-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -27,9 +27,11 @@ import { IMetricTelemetry } from '@microsoft/applicationinsights-common';
|
|
|
27
27
|
import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-common';
|
|
28
28
|
import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
|
|
29
29
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
30
|
+
import { IPromise } from '@nevware21/ts-async';
|
|
30
31
|
import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js';
|
|
31
32
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
32
33
|
import { ITelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
34
|
+
import { ITelemetryUnloadState } from '@microsoft/applicationinsights-core-js';
|
|
33
35
|
import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
34
36
|
import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
|
|
35
37
|
import { proxyFunctions } from '@microsoft/applicationinsights-core-js';
|
|
@@ -82,8 +84,15 @@ export declare class ApplicationInsights {
|
|
|
82
84
|
* approach is to create a new instance and initialize that instance.
|
|
83
85
|
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
84
86
|
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
87
|
+
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
88
|
+
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
89
|
+
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the
|
|
90
|
+
* unload. Defaults to 5 seconds.
|
|
91
|
+
* @return Nothing or if occurring asynchronously a [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)
|
|
92
|
+
* which will be resolved once the unload is complete, the [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)
|
|
93
|
+
* will only be returned when no callback is provided and isAsync is true
|
|
85
94
|
*/
|
|
86
|
-
unload(isAsync?: boolean, unloadComplete?: () => void): void
|
|
95
|
+
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void | IPromise<ITelemetryUnloadState>;
|
|
87
96
|
/**
|
|
88
97
|
* Find and return the (first) plugin with the specified identifier if present
|
|
89
98
|
* @param pluginIdentifier
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.1-nightly3.
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.1-nightly3.2305-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -22,9 +22,11 @@ declare namespace ApplicationInsights {
|
|
|
22
22
|
import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-common';
|
|
23
23
|
import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
|
|
24
24
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
25
|
+
import { IPromise } from '@nevware21/ts-async';
|
|
25
26
|
import { isNullOrUndefined } from '@microsoft/applicationinsights-core-js';
|
|
26
27
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
27
28
|
import { ITelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
29
|
+
import { ITelemetryUnloadState } from '@microsoft/applicationinsights-core-js';
|
|
28
30
|
import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
29
31
|
import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
|
|
30
32
|
import { proxyFunctions } from '@microsoft/applicationinsights-core-js';
|
|
@@ -77,8 +79,15 @@ declare namespace ApplicationInsights {
|
|
|
77
79
|
* approach is to create a new instance and initialize that instance.
|
|
78
80
|
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
79
81
|
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
82
|
+
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
83
|
+
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
84
|
+
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the
|
|
85
|
+
* unload. Defaults to 5 seconds.
|
|
86
|
+
* @return Nothing or if occurring asynchronously a [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)
|
|
87
|
+
* which will be resolved once the unload is complete, the [IPromise](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html)
|
|
88
|
+
* will only be returned when no callback is provided and isAsync is true
|
|
80
89
|
*/
|
|
81
|
-
unload(isAsync?: boolean, unloadComplete?: () => void): void
|
|
90
|
+
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void | IPromise<ITelemetryUnloadState>;
|
|
82
91
|
/**
|
|
83
92
|
* Find and return the (first) plugin with the specified identifier if present
|
|
84
93
|
* @param pluginIdentifier
|