@microsoft/applicationinsights-core-js 2.8.10-nightly.2212-02 → 2.8.10-nightly.2301-13
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/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +2 -2
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +1 -1
- package/dist/applicationinsights-core-js.d.ts +1 -1
- package/dist/applicationinsights-core-js.js +2 -2
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +3 -3
- package/src/JavaScriptSDK/AppInsightsCore.ts +17 -17
- package/src/JavaScriptSDK/BaseCore.ts +48 -48
- package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +27 -27
- package/src/JavaScriptSDK/ChannelController.ts +22 -22
- package/src/JavaScriptSDK/CookieMgr.ts +16 -16
- package/src/JavaScriptSDK/CoreUtils.ts +18 -18
- package/src/JavaScriptSDK/DataCacheHelper.ts +9 -9
- package/src/JavaScriptSDK/DbgExtensionUtils.ts +9 -9
- package/src/JavaScriptSDK/DiagnosticLogger.ts +14 -14
- package/src/JavaScriptSDK/EnvUtils.ts +9 -9
- package/src/JavaScriptSDK/EventHelpers.ts +8 -8
- package/src/JavaScriptSDK/HelperFuncs.ts +9 -9
- package/src/JavaScriptSDK/InstrumentHooks.ts +11 -11
- package/src/JavaScriptSDK/NotificationManager.ts +12 -12
- package/src/JavaScriptSDK/PerfManager.ts +10 -10
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +26 -26
- package/src/JavaScriptSDK/RandomHelper.ts +7 -7
- package/src/JavaScriptSDK/TelemetryHelpers.ts +18 -18
- package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +16 -16
- package/src/JavaScriptSDK/UnloadHandlerContainer.ts +11 -11
- package/src/JavaScriptSDK/W3cTraceParent.ts +6 -6
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
-
import { objCreateFn } from "@microsoft/applicationinsights-shims";
|
|
7
|
-
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
8
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
9
|
-
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
10
|
-
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
11
|
-
import { IAppInsightsCore, ILoadedPlugin } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
12
|
-
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
13
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
14
|
-
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
15
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
16
|
-
import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
|
|
17
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
18
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
19
|
-
import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
20
|
-
import { IProcessTelemetryContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
21
|
-
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "../JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
22
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
23
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
24
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
25
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
26
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
27
|
-
import {
|
|
28
|
-
ChannelControllerPriority, IChannelController, IInternalChannelController, _IInternalChannels, createChannelControllerPlugin,
|
|
29
|
-
createChannelQueues
|
|
30
|
-
} from "./ChannelController";
|
|
31
|
-
import { createCookieMgr } from "./CookieMgr";
|
|
32
|
-
import { createUniqueNamespace } from "./DataCacheHelper";
|
|
33
|
-
import { getDebugListener } from "./DbgExtensionUtils";
|
|
34
|
-
import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
|
|
35
|
-
import {
|
|
36
|
-
arrForEach, arrIndexOf, getCfgValue, getSetValue, isFunction, isNullOrUndefined, objExtend, objFreeze, proxyFunctionAs, proxyFunctions,
|
|
37
|
-
throwError, toISOString
|
|
38
|
-
} from "./HelperFuncs";
|
|
39
|
-
import { STR_CHANNELS, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EXTENSIONS, STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
40
|
-
import { PerfManager, getGblPerfMgr } from "./PerfManager";
|
|
41
|
-
import {
|
|
42
|
-
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain
|
|
43
|
-
} from "./ProcessTelemetryContext";
|
|
44
|
-
import { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from "./TelemetryHelpers";
|
|
45
|
-
import { TelemetryInitializerPlugin } from "./TelemetryInitializerPlugin";
|
|
46
|
-
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
47
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
+
import { objCreateFn } from "@microsoft/applicationinsights-shims";
|
|
7
|
+
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
8
|
+
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
9
|
+
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
10
|
+
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
11
|
+
import { IAppInsightsCore, ILoadedPlugin } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
12
|
+
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
13
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
14
|
+
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
15
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
16
|
+
import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
|
|
17
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
18
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
19
|
+
import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
20
|
+
import { IProcessTelemetryContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
21
|
+
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "../JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
22
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
23
|
+
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
24
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
25
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
26
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
27
|
+
import {
|
|
28
|
+
ChannelControllerPriority, IChannelController, IInternalChannelController, _IInternalChannels, createChannelControllerPlugin,
|
|
29
|
+
createChannelQueues
|
|
30
|
+
} from "./ChannelController";
|
|
31
|
+
import { createCookieMgr } from "./CookieMgr";
|
|
32
|
+
import { createUniqueNamespace } from "./DataCacheHelper";
|
|
33
|
+
import { getDebugListener } from "./DbgExtensionUtils";
|
|
34
|
+
import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
|
|
35
|
+
import {
|
|
36
|
+
arrForEach, arrIndexOf, getCfgValue, getSetValue, isFunction, isNullOrUndefined, objExtend, objFreeze, proxyFunctionAs, proxyFunctions,
|
|
37
|
+
throwError, toISOString
|
|
38
|
+
} from "./HelperFuncs";
|
|
39
|
+
import { STR_CHANNELS, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EXTENSIONS, STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
40
|
+
import { PerfManager, getGblPerfMgr } from "./PerfManager";
|
|
41
|
+
import {
|
|
42
|
+
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain
|
|
43
|
+
} from "./ProcessTelemetryContext";
|
|
44
|
+
import { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from "./TelemetryHelpers";
|
|
45
|
+
import { TelemetryInitializerPlugin } from "./TelemetryInitializerPlugin";
|
|
46
|
+
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
47
|
+
|
|
48
48
|
const strValidationError = "Plugins must provide initialize method";
|
|
49
49
|
const strNotificationManager = "_notificationManager";
|
|
50
50
|
const strSdkUnloadingError = "SDK is still unloading...";
|
|
@@ -947,4 +947,4 @@ export class BaseCore implements IAppInsightsCore {
|
|
|
947
947
|
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
|
|
948
948
|
return false;
|
|
949
949
|
}
|
|
950
|
-
}
|
|
950
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
-
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
7
|
-
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
8
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
9
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
11
|
-
import { IInstrumentHook } from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
12
|
-
import {
|
|
13
|
-
IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
14
|
-
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
15
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
16
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
17
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
18
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
19
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
20
|
-
import { arrForEach, isArray, isFunction, isNullOrUndefined, proxyFunctionAs, setValue } from "./HelperFuncs";
|
|
21
|
-
import { STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
22
|
-
import {
|
|
23
|
-
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext
|
|
24
|
-
} from "./ProcessTelemetryContext";
|
|
25
|
-
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
26
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
+
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
7
|
+
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
8
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
9
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
11
|
+
import { IInstrumentHook } from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
12
|
+
import {
|
|
13
|
+
IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
14
|
+
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
15
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
16
|
+
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
17
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
18
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
19
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
20
|
+
import { arrForEach, isArray, isFunction, isNullOrUndefined, proxyFunctionAs, setValue } from "./HelperFuncs";
|
|
21
|
+
import { STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
22
|
+
import {
|
|
23
|
+
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext
|
|
24
|
+
} from "./ProcessTelemetryContext";
|
|
25
|
+
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
26
|
+
|
|
27
27
|
let strGetPlugin = "getPlugin";
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -341,4 +341,4 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
341
341
|
protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void {
|
|
342
342
|
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
|
|
343
343
|
}
|
|
344
|
-
}
|
|
344
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// // Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
5
|
-
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
6
|
-
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
7
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
8
|
-
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
9
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
-
import {
|
|
11
|
-
IBaseProcessingContext, IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
12
|
-
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
13
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
14
|
-
import { IPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
15
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
16
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
17
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
18
|
-
import { arrForEach, isArray, objFreeze, throwError } from "./HelperFuncs";
|
|
19
|
-
import { createProcessTelemetryContext, createTelemetryProxyChain } from "./ProcessTelemetryContext";
|
|
20
|
-
import { initializePlugins } from "./TelemetryHelpers";
|
|
21
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// // Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
5
|
+
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
6
|
+
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
7
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
8
|
+
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
9
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
+
import {
|
|
11
|
+
IBaseProcessingContext, IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
12
|
+
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
13
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
14
|
+
import { IPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
15
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
16
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
17
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
18
|
+
import { arrForEach, isArray, objFreeze, throwError } from "./HelperFuncs";
|
|
19
|
+
import { createProcessTelemetryContext, createTelemetryProxyChain } from "./ProcessTelemetryContext";
|
|
20
|
+
import { initializePlugins } from "./TelemetryHelpers";
|
|
21
|
+
|
|
22
22
|
export const ChannelControllerPriority = 500;
|
|
23
23
|
|
|
24
24
|
const ChannelValidationMessage = "Channel has invalid priority - ";
|
|
@@ -273,4 +273,4 @@ export function createChannelQueues(channels: IChannelControls[][], extensions:
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
return channelQueue;
|
|
276
|
-
}
|
|
276
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
4
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
5
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
-
import { ICookieMgr, ICookieMgrConfig } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
7
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
8
|
-
import { _throwInternal } from "./DiagnosticLogger";
|
|
9
|
-
import { dumpObj, getDocument, getLocation, getNavigator, isIE } from "./EnvUtils";
|
|
10
|
-
import {
|
|
11
|
-
arrForEach, dateNow, getExceptionName, isArray, isFunction, isNotNullOrUndefined, isNullOrUndefined, isString, isTruthy, isUndefined,
|
|
12
|
-
objForEachKey, setValue, strContains, strEndsWith, strTrim
|
|
13
|
-
} from "./HelperFuncs";
|
|
14
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
15
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
4
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
5
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
+
import { ICookieMgr, ICookieMgrConfig } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
7
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
8
|
+
import { _throwInternal } from "./DiagnosticLogger";
|
|
9
|
+
import { dumpObj, getDocument, getLocation, getNavigator, isIE } from "./EnvUtils";
|
|
10
|
+
import {
|
|
11
|
+
arrForEach, dateNow, getExceptionName, isArray, isFunction, isNotNullOrUndefined, isNullOrUndefined, isString, isTruthy, isUndefined,
|
|
12
|
+
objForEachKey, setValue, strContains, strEndsWith, strTrim
|
|
13
|
+
} from "./HelperFuncs";
|
|
14
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
15
|
+
|
|
16
16
|
const strToGMTString = "toGMTString";
|
|
17
17
|
const strToUTCString = "toUTCString";
|
|
18
18
|
const strCookie = "cookie";
|
|
@@ -398,4 +398,4 @@ export function uaDisallowsSameSiteNone(userAgent: string) {
|
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
return false;
|
|
401
|
-
}
|
|
401
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
import { objCreateFn, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
-
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
7
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
8
|
-
import { _gblCookieMgr } from "./CookieMgr";
|
|
9
|
-
import { getPerformance, isIE } from "./EnvUtils";
|
|
10
|
-
import { addEventHandler, attachEvent, detachEvent } from "./EventHelpers";
|
|
11
|
-
import {
|
|
12
|
-
arrForEach, arrIndexOf, arrMap, arrReduce, dateNow, hasOwnProperty, isArray, isBoolean, isDate, isError, isFunction, isNullOrUndefined,
|
|
13
|
-
isNumber, isObject, isString, isTypeof, isUndefined, objDefineAccessors, objKeys, strTrim, toISOString
|
|
14
|
-
} from "./HelperFuncs";
|
|
15
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
16
|
-
import { mwcRandom32, mwcRandomSeed, newId, random32, randomValue } from "./RandomHelper";
|
|
17
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
import { objCreateFn, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
+
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
7
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
8
|
+
import { _gblCookieMgr } from "./CookieMgr";
|
|
9
|
+
import { getPerformance, isIE } from "./EnvUtils";
|
|
10
|
+
import { addEventHandler, attachEvent, detachEvent } from "./EventHelpers";
|
|
11
|
+
import {
|
|
12
|
+
arrForEach, arrIndexOf, arrMap, arrReduce, dateNow, hasOwnProperty, isArray, isBoolean, isDate, isError, isFunction, isNullOrUndefined,
|
|
13
|
+
isNumber, isObject, isString, isTypeof, isUndefined, objDefineAccessors, objKeys, strTrim, toISOString
|
|
14
|
+
} from "./HelperFuncs";
|
|
15
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
16
|
+
import { mwcRandom32, mwcRandomSeed, newId, random32, randomValue } from "./RandomHelper";
|
|
17
|
+
|
|
18
18
|
let _cookieMgrs: ICookieMgr[] = null;
|
|
19
19
|
let _canUseCookies: boolean; // legacy supported config
|
|
20
20
|
|
|
@@ -481,4 +481,4 @@ export function setCookie(logger: IDiagnosticLogger, name: string, value: string
|
|
|
481
481
|
*/
|
|
482
482
|
export function deleteCookie(logger: IDiagnosticLogger, name: string) {
|
|
483
483
|
return _legacyCookieMgr(null, logger).del(name);
|
|
484
|
-
}
|
|
484
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { ObjDefineProperty } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import { normalizeJsName } from "./HelperFuncs";
|
|
6
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
-
import { newId } from "./RandomHelper";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { ObjDefineProperty } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import { normalizeJsName } from "./HelperFuncs";
|
|
6
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
+
import { newId } from "./RandomHelper";
|
|
8
|
+
|
|
9
9
|
const _objDefineProperty = ObjDefineProperty;
|
|
10
10
|
|
|
11
11
|
const version = "#version#";
|
|
@@ -104,4 +104,4 @@ export function createElmNodeData(name?: string) {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
return data;
|
|
107
|
-
}
|
|
107
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
5
|
-
import { IDbgExtension } from "../JavaScriptSDK.Interfaces/IDbgExtension";
|
|
6
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
7
|
-
import { getGlobalInst } from "./EnvUtils";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
5
|
+
import { IDbgExtension } from "../JavaScriptSDK.Interfaces/IDbgExtension";
|
|
6
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
7
|
+
import { getGlobalInst } from "./EnvUtils";
|
|
8
|
+
|
|
9
9
|
const listenerFuncs = [ "eventsSent", "eventsDiscarded", "eventsSendRequest", "perfEvent" ];
|
|
10
10
|
|
|
11
11
|
let _aiNamespace: any = null;
|
|
@@ -52,4 +52,4 @@ export function getDebugListener(config: IConfiguration): INotificationListener
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
return _debugListener;
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict"
|
|
4
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
-
import { LoggingSeverity, _InternalMessageId, _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
6
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
7
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
8
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
9
|
-
import { getDebugExt } from "./DbgExtensionUtils";
|
|
10
|
-
import { dumpObj, getConsole, getJSON, hasJSON } from "./EnvUtils";
|
|
11
|
-
import { getCfgValue, isFunction, isUndefined } from "./HelperFuncs";
|
|
12
|
-
import { STR_EMPTY, STR_ERROR_TO_CONSOLE, STR_WARN_TO_CONSOLE } from "./InternalConstants";
|
|
13
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict"
|
|
4
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
+
import { LoggingSeverity, _InternalMessageId, _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
6
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
7
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
8
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
9
|
+
import { getDebugExt } from "./DbgExtensionUtils";
|
|
10
|
+
import { dumpObj, getConsole, getJSON, hasJSON } from "./EnvUtils";
|
|
11
|
+
import { getCfgValue, isFunction, isUndefined } from "./HelperFuncs";
|
|
12
|
+
import { STR_EMPTY, STR_ERROR_TO_CONSOLE, STR_WARN_TO_CONSOLE } from "./InternalConstants";
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* For user non actionable traces use AI Internal prefix.
|
|
16
16
|
*/
|
|
@@ -354,4 +354,4 @@ export function _warnToConsole(logger: IDiagnosticLogger, message: string) {
|
|
|
354
354
|
*/
|
|
355
355
|
export function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage) {
|
|
356
356
|
_getLogger(logger).logInternalMessage(severity, message);
|
|
357
|
-
}
|
|
357
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import { getGlobal, strShimObject, strShimPrototype, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
6
|
-
import { isString, isUndefined, strContains } from "./HelperFuncs";
|
|
7
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import { getGlobal, strShimObject, strShimPrototype, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
6
|
+
import { isString, isUndefined, strContains } from "./HelperFuncs";
|
|
7
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
8
|
+
|
|
9
9
|
// TypeScript removed this interface so we need to declare the global so we can check for it's existence.
|
|
10
10
|
declare var XDomainRequest: any;
|
|
11
11
|
|
|
@@ -454,4 +454,4 @@ export function findNamedServerTiming(name: string): any {
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
return value;
|
|
457
|
-
}
|
|
457
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { createElmNodeData, createUniqueNamespace } from "./DataCacheHelper";
|
|
4
|
-
import { getDocument, getWindow } from "./EnvUtils";
|
|
5
|
-
import { arrForEach, arrIndexOf, isArray, objForEachKey, objKeys } from "./HelperFuncs";
|
|
6
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createElmNodeData, createUniqueNamespace } from "./DataCacheHelper";
|
|
4
|
+
import { getDocument, getWindow } from "./EnvUtils";
|
|
5
|
+
import { arrForEach, arrIndexOf, isArray, objForEachKey, objKeys } from "./HelperFuncs";
|
|
6
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
+
|
|
8
8
|
// Added to help with minfication
|
|
9
9
|
const strOnPrefix = "on";
|
|
10
10
|
const strAttachEvent = "attachEvent";
|
|
@@ -548,4 +548,4 @@ export function removePageShowEventListener(listener: any, evtNamespace?: string
|
|
|
548
548
|
let newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);
|
|
549
549
|
removeEventListeners([strPageShow], listener, newNamespaces);
|
|
550
550
|
removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);
|
|
551
|
-
}
|
|
551
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
4
|
-
ObjAssign, ObjClass, ObjDefineProperty, ObjHasOwnProperty, ObjProto, strShimFunction, strShimObject, strShimPrototype, strShimUndefined,
|
|
5
|
-
throwTypeError
|
|
6
|
-
} from "@microsoft/applicationinsights-shims";
|
|
7
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import {
|
|
4
|
+
ObjAssign, ObjClass, ObjDefineProperty, ObjHasOwnProperty, ObjProto, strShimFunction, strShimObject, strShimPrototype, strShimUndefined,
|
|
5
|
+
throwTypeError
|
|
6
|
+
} from "@microsoft/applicationinsights-shims";
|
|
7
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
8
|
+
|
|
9
9
|
// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly
|
|
10
10
|
|
|
11
11
|
// Added to help with minfication
|
|
@@ -934,4 +934,4 @@ export function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: T1 | any, obj2?: T2, ob
|
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
return extended;
|
|
937
|
-
}
|
|
937
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import {
|
|
6
|
-
IInstrumentCallDetails, IInstrumentHook, IInstrumentHooks, IInstrumentHooksCallbacks, InstrumentorHooksCallback
|
|
7
|
-
} from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
8
|
-
import { getGlobalInst } from "./EnvUtils";
|
|
9
|
-
import { _getObjProto, hasOwnProperty } from "./HelperFuncs";
|
|
10
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import {
|
|
6
|
+
IInstrumentCallDetails, IInstrumentHook, IInstrumentHooks, IInstrumentHooksCallbacks, InstrumentorHooksCallback
|
|
7
|
+
} from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
8
|
+
import { getGlobalInst } from "./EnvUtils";
|
|
9
|
+
import { _getObjProto, hasOwnProperty } from "./HelperFuncs";
|
|
10
|
+
|
|
11
11
|
const aiInstrumentHooks = "_aiHooks";
|
|
12
12
|
|
|
13
13
|
const enum CallbackType {
|
|
@@ -274,4 +274,4 @@ export function InstrumentEvent(target: any, evtName: string, callbacks: IInstru
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
return null;
|
|
277
|
-
}
|
|
277
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
5
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
6
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
7
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
8
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
9
|
-
import { arrForEach, arrIndexOf } from "./HelperFuncs";
|
|
10
|
-
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
11
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
5
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
6
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
7
|
+
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
8
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
9
|
+
import { arrForEach, arrIndexOf } from "./HelperFuncs";
|
|
10
|
+
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
11
|
+
|
|
12
12
|
function _runListeners(listeners: INotificationListener[], name: string, isAsync: boolean, callback: (listener: INotificationListener) => void) {
|
|
13
13
|
arrForEach(listeners, (listener) => {
|
|
14
14
|
if (listener && listener[name]) {
|
|
@@ -151,4 +151,4 @@ export class NotificationManager implements INotificationManager {
|
|
|
151
151
|
* @param perfEvent
|
|
152
152
|
*/
|
|
153
153
|
perfEvent?(perfEvent: IPerfEvent): void;
|
|
154
|
-
}
|
|
154
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
5
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
6
|
-
import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
7
|
-
import { dateNow, isArray, isFunction, objDefineAccessors } from "./HelperFuncs";
|
|
8
|
-
import { STR_GET_PERF_MGR } from "./InternalConstants";
|
|
9
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
5
|
+
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
6
|
+
import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
7
|
+
import { dateNow, isArray, isFunction, objDefineAccessors } from "./HelperFuncs";
|
|
8
|
+
import { STR_GET_PERF_MGR } from "./InternalConstants";
|
|
9
|
+
|
|
10
10
|
const strExecutionContextKey = "ctx";
|
|
11
11
|
const strParentContextKey = "ParentContextKey";
|
|
12
12
|
const strChildrenContextKey = "ChildrenContextKey";
|
|
@@ -290,4 +290,4 @@ export function setGblPerfMgr(perfManager: IPerfManager) {
|
|
|
290
290
|
*/
|
|
291
291
|
export function getGblPerfMgr(): IPerfManager {
|
|
292
292
|
return _defaultPerfManager;
|
|
293
|
-
}
|
|
293
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
6
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
7
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
8
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
9
|
-
import {
|
|
10
|
-
GetExtCfgMergeType, IBaseProcessingContext, IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
11
|
-
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
12
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
13
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
14
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
15
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
16
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
17
|
-
import { _throwInternal, safeGetLogger } from "./DiagnosticLogger";
|
|
18
|
-
import { dumpObj } from "./EnvUtils";
|
|
19
|
-
import {
|
|
20
|
-
arrForEach, isArray, isFunction, isNullOrUndefined, isObject, isUndefined, objExtend, objForEachKey, objFreeze, objKeys, proxyFunctions
|
|
21
|
-
} from "./HelperFuncs";
|
|
22
|
-
import { STR_CORE, STR_DISABLED, STR_EMPTY } from "./InternalConstants";
|
|
23
|
-
import { doPerf } from "./PerfManager";
|
|
24
|
-
import { _getPluginState } from "./TelemetryHelpers";
|
|
25
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
6
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
7
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
8
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
9
|
+
import {
|
|
10
|
+
GetExtCfgMergeType, IBaseProcessingContext, IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
11
|
+
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
12
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
13
|
+
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
14
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
15
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
16
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
17
|
+
import { _throwInternal, safeGetLogger } from "./DiagnosticLogger";
|
|
18
|
+
import { dumpObj } from "./EnvUtils";
|
|
19
|
+
import {
|
|
20
|
+
arrForEach, isArray, isFunction, isNullOrUndefined, isObject, isUndefined, objExtend, objForEachKey, objFreeze, objKeys, proxyFunctions
|
|
21
|
+
} from "./HelperFuncs";
|
|
22
|
+
import { STR_CORE, STR_DISABLED, STR_EMPTY } from "./InternalConstants";
|
|
23
|
+
import { doPerf } from "./PerfManager";
|
|
24
|
+
import { _getPluginState } from "./TelemetryHelpers";
|
|
25
|
+
|
|
26
26
|
const strTelemetryPluginChain = "TelemetryPluginChain";
|
|
27
27
|
const strHasRunFlags = "_hasRun";
|
|
28
28
|
const strGetTelCtx = "_getTelCtx";
|
|
@@ -642,4 +642,4 @@ export class ProcessTelemetryContext implements IProcessTelemetryContext {
|
|
|
642
642
|
// Proxy all functions of the context to this object
|
|
643
643
|
proxyFunctions(_self, context, objKeys(context) as any);
|
|
644
644
|
}
|
|
645
|
-
}
|
|
645
|
+
}
|