@microsoft/applicationinsights-core-js 3.0.0-beta.2303-11 → 3.0.0-beta.2304-07
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/applicationinsights-core-js.cjs.js +5477 -0
- package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.gbl.js +5481 -0
- package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.integrity.json +66 -0
- package/browser/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
- package/browser/es5/applicationinsights-core-js.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.min.js.map +1 -0
- package/dist/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
- package/dist/es5/applicationinsights-core-js.js.map +1 -0
- package/dist/es5/applicationinsights-core-js.min.js +6 -0
- package/dist/es5/applicationinsights-core-js.min.js.map +1 -0
- package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js +1 -1
- package/{dist-esm → dist-es5}/Config/ConfigDefaults.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicConfig.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicProperty.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicState.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicSupport.js +1 -1
- package/dist-es5/Config/IConfigDefaults.js +8 -0
- package/dist-es5/Config/IDynamicConfigHandler.js +8 -0
- package/dist-es5/Config/IDynamicPropertyHandler.js +8 -0
- package/dist-es5/Config/IDynamicWatcher.js +8 -0
- package/dist-es5/Config/_IDynamicConfigHandlerState.js +6 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/CookieMgr.js +14 -8
- package/dist-es5/JavaScriptSDK/CookieMgr.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/RandomHelper.js +7 -5
- package/dist-es5/JavaScriptSDK/RandomHelper.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryInitializerPlugin.js +44 -38
- package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +6 -0
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +8 -0
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +6 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +7 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +8 -0
- package/{dist-esm → dist-es5}/__DynamicConstants.js +2 -2
- package/{dist-esm → dist-es5}/__DynamicConstants.js.map +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-core-js.js +2 -2
- package/dist-es5/applicationinsights-core-js.js.map +1 -0
- package/package.json +15 -14
- package/tsconfig.json +5 -4
- package/types/applicationinsights-core-js.d.ts +3074 -58
- package/{dist/applicationinsights-core-js.d.ts → types/applicationinsights-core-js.namespaced.d.ts} +1 -4
- package/browser/applicationinsights-core-js.integrity.json +0 -26
- package/browser/applicationinsights-core-js.js.map +0 -1
- package/browser/applicationinsights-core-js.min.js +0 -6
- package/browser/applicationinsights-core-js.min.js.map +0 -1
- package/dist/applicationinsights-core-js.api.json +0 -25423
- package/dist/applicationinsights-core-js.api.md +0 -1374
- package/dist/applicationinsights-core-js.js.map +0 -1
- package/dist/applicationinsights-core-js.min.js +0 -6
- package/dist/applicationinsights-core-js.min.js.map +0 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +0 -3078
- package/dist-esm/Config/IConfigDefaults.js +0 -8
- package/dist-esm/Config/IDynamicConfigHandler.js +0 -8
- package/dist-esm/Config/IDynamicPropertyHandler.js +0 -8
- package/dist-esm/Config/IDynamicWatcher.js +0 -8
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +0 -6
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +0 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js.map +0 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +0 -6
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControlsHost.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +0 -7
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -8
- package/dist-esm/applicationinsights-core-js.js.map +0 -1
- package/types/Config/ConfigDefaultHelpers.d.ts +0 -47
- package/types/Config/ConfigDefaults.d.ts +0 -9
- package/types/Config/DynamicConfig.d.ts +0 -23
- package/types/Config/DynamicProperty.d.ts +0 -3
- package/types/Config/DynamicState.d.ts +0 -3
- package/types/Config/DynamicSupport.d.ts +0 -82
- package/types/Config/IConfigDefaults.d.ts +0 -63
- package/types/Config/IDynamicConfigHandler.d.ts +0 -69
- package/types/Config/IDynamicPropertyHandler.d.ts +0 -11
- package/types/Config/IDynamicWatcher.d.ts +0 -61
- package/types/Config/_IDynamicConfigHandlerState.d.ts +0 -52
- package/types/JavaScriptSDK/AggregationError.d.ts +0 -6
- package/types/JavaScriptSDK/AppInsightsCore.d.ts +0 -158
- package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +0 -110
- package/types/JavaScriptSDK/Constants.d.ts +0 -1
- package/types/JavaScriptSDK/CookieMgr.d.ts +0 -15
- package/types/JavaScriptSDK/CoreUtils.d.ts +0 -13
- package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
- package/types/JavaScriptSDK/DbgExtensionUtils.d.ts +0 -5
- package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -76
- package/types/JavaScriptSDK/EnvUtils.d.ts +0 -81
- package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
- package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -106
- package/types/JavaScriptSDK/InstrumentHooks.d.ts +0 -43
- package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
- package/types/JavaScriptSDK/NotificationManager.d.ts +0 -46
- package/types/JavaScriptSDK/PerfManager.d.ts +0 -93
- package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +0 -119
- package/types/JavaScriptSDK/RandomHelper.d.ts +0 -29
- package/types/JavaScriptSDK/TelemetryHelpers.d.ts +0 -38
- package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
- package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -8
- package/types/JavaScriptSDK/UnloadHookContainer.d.ts +0 -16
- package/types/JavaScriptSDK/W3cTraceParent.d.ts +0 -59
- package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +0 -22
- package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +0 -34
- package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +0 -104
- package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -45
- package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
- package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -21
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +0 -171
- package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +0 -36
- package/types/JavaScriptSDK.Interfaces/IChannelControlsHost.d.ts +0 -9
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +0 -150
- package/types/JavaScriptSDK.Interfaces/ICookieMgr.d.ts +0 -97
- package/types/JavaScriptSDK.Interfaces/IDbgExtension.d.ts +0 -10
- package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +0 -48
- package/types/JavaScriptSDK.Interfaces/IDistributedTraceContext.d.ts +0 -43
- package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -81
- package/types/JavaScriptSDK.Interfaces/INotificationListener.d.ts +0 -32
- package/types/JavaScriptSDK.Interfaces/INotificationManager.d.ts +0 -43
- package/types/JavaScriptSDK.Interfaces/IPerfEvent.d.ts +0 -56
- package/types/JavaScriptSDK.Interfaces/IPerfManager.d.ts +0 -45
- package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +0 -129
- package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -14
- package/types/JavaScriptSDK.Interfaces/ITelemetryItem.d.ts +0 -51
- package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +0 -80
- package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +0 -23
- package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
- package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -33
- package/types/JavaScriptSDK.Interfaces/ITraceParent.d.ts +0 -32
- package/types/JavaScriptSDK.Interfaces/IUnloadHook.d.ts +0 -18
- package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
- package/types/__DynamicConstants.d.ts +0 -53
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/ConfigDefaults.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicProperty.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicState.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicSupport.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IConfigDefaults.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicConfigHandler.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicPropertyHandler.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicWatcher.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/_IDynamicConfigHandlerState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/SendRequestReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControlsHost.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IConfiguration.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ICookieMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDbgExtension.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDiagnosticLogger.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDistributedTraceContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IInstrumentHooks.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationListener.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfEvent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryItem.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITraceParent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadHook.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
2
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
3
|
-
import { IConfigDefaults } from "./IConfigDefaults";
|
|
4
|
-
import { IWatcherHandler, WatcherFunction } from "./IDynamicWatcher";
|
|
5
|
-
/**
|
|
6
|
-
* This interface identifies the config which can track changes
|
|
7
|
-
*/
|
|
8
|
-
export interface IDynamicConfigHandler<T extends IConfiguration> {
|
|
9
|
-
/**
|
|
10
|
-
* Unique Id for this config handler
|
|
11
|
-
*/
|
|
12
|
-
readonly uid: string;
|
|
13
|
-
/**
|
|
14
|
-
* Link back to the configuration object that should be used to get/set values
|
|
15
|
-
*/
|
|
16
|
-
cfg: T;
|
|
17
|
-
/**
|
|
18
|
-
* The logger instance to use to loger any issues
|
|
19
|
-
*/
|
|
20
|
-
logger: IDiagnosticLogger;
|
|
21
|
-
/**
|
|
22
|
-
* Helper to call any listeners that are waiting to be notified
|
|
23
|
-
*/
|
|
24
|
-
notify: () => void;
|
|
25
|
-
/**
|
|
26
|
-
* Watch and track changes for accesses to the current config anb
|
|
27
|
-
*/
|
|
28
|
-
watch: (configHandler: WatcherFunction<T>) => IWatcherHandler<T>;
|
|
29
|
-
/**
|
|
30
|
-
* Set the value against the provided config/name with the value, the property
|
|
31
|
-
* will be converted to be dynamic (if not already) as long as the provided config
|
|
32
|
-
* is already a tracked dynamic object.
|
|
33
|
-
* @throws TypeError if the provided config is not a monitored dynamic config
|
|
34
|
-
*/
|
|
35
|
-
set: <C, V>(theConfig: C, name: string, value: V) => V;
|
|
36
|
-
/**
|
|
37
|
-
* Set default values for the config if not present.
|
|
38
|
-
* @param theConfig - The configuration object to set default on (if missing)
|
|
39
|
-
* @param defaultValues - The default values to apply to the config
|
|
40
|
-
*/
|
|
41
|
-
setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C, T>) => C;
|
|
42
|
-
/**
|
|
43
|
-
* Set this named property of the target as referenced, which will cause any object or array instances
|
|
44
|
-
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
45
|
-
* @returns The referenced properties current value
|
|
46
|
-
*/
|
|
47
|
-
ref: <C, V = any>(target: C, name: string) => V;
|
|
48
|
-
/**
|
|
49
|
-
* Set this named property of the target as read-only, which will block this single named property from
|
|
50
|
-
* ever being changed for the target instance.
|
|
51
|
-
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
52
|
-
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
53
|
-
* @returns The referenced properties current value
|
|
54
|
-
*/
|
|
55
|
-
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @ignore
|
|
60
|
-
*/
|
|
61
|
-
export interface _IInternalDynamicConfigHandler<T extends IConfiguration> extends IDynamicConfigHandler<T> {
|
|
62
|
-
/**
|
|
63
|
-
* @ignore
|
|
64
|
-
* Internal function to explicitly block watching for any config updates
|
|
65
|
-
* @param configHandler - The Callback function to call after blocking update listening
|
|
66
|
-
* @param allowUpdate - An optional flag to enable updating config properties marked as readonly
|
|
67
|
-
*/
|
|
68
|
-
_block: (configHandler: WatcherFunction<T>, allowUpdate?: boolean) => void;
|
|
69
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IWatcherHandler } from "./IDynamicWatcher";
|
|
2
|
-
export interface IDynamicPropertyHandler<T> {
|
|
3
|
-
/**
|
|
4
|
-
* Identifies the name of the field that is handled by this handler
|
|
5
|
-
*/
|
|
6
|
-
n: string;
|
|
7
|
-
/**
|
|
8
|
-
* The current collection is watcher handlers which should be called if the value changes
|
|
9
|
-
*/
|
|
10
|
-
h: IWatcherHandler<T>[];
|
|
11
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
2
|
-
import { IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
3
|
-
import { IConfigDefaults } from "./IConfigDefaults";
|
|
4
|
-
import { IDynamicPropertyHandler } from "./IDynamicPropertyHandler";
|
|
5
|
-
export interface IWatchDetails<T extends IConfiguration> {
|
|
6
|
-
/**
|
|
7
|
-
* The current config object
|
|
8
|
-
*/
|
|
9
|
-
cfg: T;
|
|
10
|
-
/**
|
|
11
|
-
* Set the value against the provided config/name with the value, the property
|
|
12
|
-
* will be converted to be dynamic (if not already) as long as the provided config
|
|
13
|
-
* is already a tracked dynamic object.
|
|
14
|
-
* @throws TypeError if the provided config is not a monitored dynamic config
|
|
15
|
-
*/
|
|
16
|
-
set: <C, V>(theConfig: C, name: string, value: V) => V;
|
|
17
|
-
/**
|
|
18
|
-
* Set default values for the config if not present.
|
|
19
|
-
* @param theConfig - The configuration object to set default on (if missing)
|
|
20
|
-
* @param defaultValues - The default values to apply to the config
|
|
21
|
-
*/
|
|
22
|
-
setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C>) => C;
|
|
23
|
-
/**
|
|
24
|
-
* Set this named property of the target as referenced, which will cause any object or array instance
|
|
25
|
-
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
26
|
-
* @returns The referenced properties current value
|
|
27
|
-
*/
|
|
28
|
-
ref: <C, V = any>(target: C, name: string) => V;
|
|
29
|
-
/**
|
|
30
|
-
* Set this named property of the target as read-only, which will block this single named property from
|
|
31
|
-
* ever being changed for the target instance.
|
|
32
|
-
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
33
|
-
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
34
|
-
* @returns The referenced properties current value
|
|
35
|
-
*/
|
|
36
|
-
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
37
|
-
}
|
|
38
|
-
export type WatcherFunction<T extends IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
export interface _WatcherChangeDetails<T extends IConfiguration> {
|
|
43
|
-
d: _IDynamicDetail<T>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
export interface _IDynamicDetail<T extends IConfiguration> extends IDynamicPropertyHandler<T> {
|
|
49
|
-
/**
|
|
50
|
-
* Add the watcher for monitoring changes
|
|
51
|
-
*/
|
|
52
|
-
trk: (handler: IWatcherHandler<T>) => void;
|
|
53
|
-
/**
|
|
54
|
-
* Clear all of the watchers from monitoring changes
|
|
55
|
-
*/
|
|
56
|
-
clr: (handler: IWatcherHandler<T>) => void;
|
|
57
|
-
}
|
|
58
|
-
export interface IWatcherHandler<T extends IConfiguration> extends IUnloadHook {
|
|
59
|
-
fn: WatcherFunction<T>;
|
|
60
|
-
rm: () => void;
|
|
61
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IDynamicConfigHandler } from "./IDynamicConfigHandler";
|
|
2
|
-
import { IDynamicPropertyHandler } from "./IDynamicPropertyHandler";
|
|
3
|
-
import { IWatcherHandler, WatcherFunction, _IDynamicDetail } from "./IDynamicWatcher";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* Interface for internal communication to notifying state changes
|
|
7
|
-
*/
|
|
8
|
-
export interface _IDynamicGetter {
|
|
9
|
-
/**
|
|
10
|
-
* Cause any listeners of this property to be notified that the value has changed.
|
|
11
|
-
* Primarily used to ensure that listeners of child properties of an object that is getting replaced
|
|
12
|
-
* will be notified.
|
|
13
|
-
*/
|
|
14
|
-
chng: () => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* Interface for the global dynamic config handler
|
|
19
|
-
*/
|
|
20
|
-
export interface _IDynamicConfigHandlerState<T> {
|
|
21
|
-
prop: symbol;
|
|
22
|
-
ro: symbol;
|
|
23
|
-
rf: symbol;
|
|
24
|
-
/**
|
|
25
|
-
* Link to the handler
|
|
26
|
-
*/
|
|
27
|
-
hdlr: IDynamicConfigHandler<T>;
|
|
28
|
-
/**
|
|
29
|
-
* Identifies the current active handler
|
|
30
|
-
*/
|
|
31
|
-
act?: IWatcherHandler<T>;
|
|
32
|
-
/**
|
|
33
|
-
* Enable / Disable updates to dynamic readonly properties
|
|
34
|
-
*/
|
|
35
|
-
upd?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Helper to call any listeners that are waiting to be notified
|
|
38
|
-
*/
|
|
39
|
-
notify: () => void;
|
|
40
|
-
/**
|
|
41
|
-
* Add this property handler to the collection to be notified
|
|
42
|
-
*/
|
|
43
|
-
add: (handler: IDynamicPropertyHandler<T>) => void;
|
|
44
|
-
/**
|
|
45
|
-
* Add this handler as a handler for
|
|
46
|
-
*/
|
|
47
|
-
trk: (handler: IWatcherHandler<T>, detail: _IDynamicDetail<T>) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Use the provided handler to listen for changes
|
|
50
|
-
*/
|
|
51
|
-
use: (activeHandler: IWatcherHandler<T>, callback: WatcherFunction<T>) => void;
|
|
52
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Throws an Aggregation Error which includes all of the errors that led to this error occurring
|
|
3
|
-
* @param message - The message describing the aggregation error (the sourceError details are added to this)
|
|
4
|
-
* @param sourceErrors - An array of the errors that caused this situation
|
|
5
|
-
*/
|
|
6
|
-
export declare function throwAggregationError(message: string, sourceErrors: any[]): never;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { ITimerHandler } from "@nevware21/ts-utils";
|
|
2
|
-
import { WatcherFunction } from "../Config/IDynamicWatcher";
|
|
3
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
4
|
-
import { IAppInsightsCore, ILoadedPlugin } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
5
|
-
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
6
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
7
|
-
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
8
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
9
|
-
import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
|
|
10
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
11
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
12
|
-
import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
13
|
-
import { IProcessTelemetryContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
14
|
-
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "../JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
15
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
16
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
17
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
18
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
19
|
-
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
20
|
-
import { UnloadHandler } from "./UnloadHandlerContainer";
|
|
21
|
-
export declare class AppInsightsCore<CfgType extends IConfiguration = IConfiguration> implements IAppInsightsCore<CfgType> {
|
|
22
|
-
config: CfgType;
|
|
23
|
-
logger: IDiagnosticLogger;
|
|
24
|
-
/**
|
|
25
|
-
* An array of the installed plugins that provide a version
|
|
26
|
-
*/
|
|
27
|
-
readonly pluginVersionStringArr: string[];
|
|
28
|
-
/**
|
|
29
|
-
* The formatted string of the installed plugins that contain a version number
|
|
30
|
-
*/
|
|
31
|
-
readonly pluginVersionString: string;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
34
|
-
*/
|
|
35
|
-
isInitialized: () => boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
38
|
-
*/
|
|
39
|
-
getWParam: () => number;
|
|
40
|
-
constructor();
|
|
41
|
-
initialize(config: CfgType, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
42
|
-
getChannels(): IChannelControls[];
|
|
43
|
-
track(telemetryItem: ITelemetryItem): void;
|
|
44
|
-
getProcessTelContext(): IProcessTelemetryContext;
|
|
45
|
-
getNotifyMgr(): INotificationManager;
|
|
46
|
-
/**
|
|
47
|
-
* Adds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised.
|
|
48
|
-
* The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be
|
|
49
|
-
* called.
|
|
50
|
-
* @param listener - An INotificationListener object.
|
|
51
|
-
*/
|
|
52
|
-
addNotificationListener(listener: INotificationListener): void;
|
|
53
|
-
/**
|
|
54
|
-
* Removes all instances of the listener.
|
|
55
|
-
* @param listener - INotificationListener to remove.
|
|
56
|
-
*/
|
|
57
|
-
removeNotificationListener(listener: INotificationListener): void;
|
|
58
|
-
/**
|
|
59
|
-
* Get the current cookie manager for this instance
|
|
60
|
-
*/
|
|
61
|
-
getCookieMgr(): ICookieMgr;
|
|
62
|
-
/**
|
|
63
|
-
* Set the current cookie manager for this instance
|
|
64
|
-
* @param cookieMgr - The manager, if set to null/undefined will cause the default to be created
|
|
65
|
-
*/
|
|
66
|
-
setCookieMgr(cookieMgr: ICookieMgr): void;
|
|
67
|
-
getPerfMgr(): IPerfManager;
|
|
68
|
-
setPerfMgr(perfMgr: IPerfManager): void;
|
|
69
|
-
eventCnt(): number;
|
|
70
|
-
/**
|
|
71
|
-
* Periodically check logger.queue for
|
|
72
|
-
*/
|
|
73
|
-
pollInternalLogs(eventName?: string): ITimerHandler;
|
|
74
|
-
/**
|
|
75
|
-
* Periodically check logger.queue for
|
|
76
|
-
*/
|
|
77
|
-
stopPollingInternalLogs(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Add a telemetry processor to decorate or drop telemetry events.
|
|
80
|
-
* @param telemetryInitializer - The Telemetry Initializer function
|
|
81
|
-
* @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
|
|
82
|
-
*/
|
|
83
|
-
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
84
|
-
/**
|
|
85
|
-
* Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered
|
|
86
|
-
* to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous
|
|
87
|
-
* unload call return `true` stating that all plugins reported that they also unloaded, the recommended
|
|
88
|
-
* approach is to create a new instance and initialize that instance.
|
|
89
|
-
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
90
|
-
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
91
|
-
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
92
|
-
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
93
|
-
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
94
|
-
*/
|
|
95
|
-
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
96
|
-
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
97
|
-
/**
|
|
98
|
-
* Add a new plugin to the installation
|
|
99
|
-
* @param plugin - The new plugin to add
|
|
100
|
-
* @param replaceExisting - should any existing plugin be replaced, default is false
|
|
101
|
-
* @param doAsync - Should the add be performed asynchronously
|
|
102
|
-
* @param addCb - [Optional] callback to call after the plugin has been added
|
|
103
|
-
*/
|
|
104
|
-
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
105
|
-
/**
|
|
106
|
-
* Update the configuration used and broadcast the changes to all loaded plugins
|
|
107
|
-
* @param newConfig - The new configuration is apply
|
|
108
|
-
* @param mergeExisting - Should the new configuration merge with the existing or just replace it. Default is to true.
|
|
109
|
-
*/
|
|
110
|
-
updateCfg(newConfig: CfgType, mergeExisting?: boolean): void;
|
|
111
|
-
/**
|
|
112
|
-
* Returns the unique event namespace that should be used
|
|
113
|
-
*/
|
|
114
|
-
evtNamespace(): string;
|
|
115
|
-
/**
|
|
116
|
-
* Add an unload handler that will be called when the SDK is being unloaded
|
|
117
|
-
* @param handler - the handler
|
|
118
|
-
*/
|
|
119
|
-
addUnloadCb(handler: UnloadHandler): void;
|
|
120
|
-
/**
|
|
121
|
-
* Flush and send any batched / cached data immediately
|
|
122
|
-
* @param async - send data asynchronously when true (defaults to true)
|
|
123
|
-
* @param callBack - if specified, notify caller when send is complete, the channel should return true to indicate to the caller that it will be called.
|
|
124
|
-
* If the caller doesn't return true the caller should assume that it may never be called.
|
|
125
|
-
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
126
|
-
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
127
|
-
*/
|
|
128
|
-
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
129
|
-
/**
|
|
130
|
-
* Gets the current distributed trace context for this instance if available
|
|
131
|
-
* @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
|
|
132
|
-
*/
|
|
133
|
-
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
134
|
-
/**
|
|
135
|
-
* Sets the current distributed trace context for this instance if available
|
|
136
|
-
*/
|
|
137
|
-
setTraceCtx(newTracectx: IDistributedTraceContext): void;
|
|
138
|
-
/**
|
|
139
|
-
* Add this hook so that it is automatically removed during unloading
|
|
140
|
-
* @param hooks - The single hook or an array of IInstrumentHook objects
|
|
141
|
-
*/
|
|
142
|
-
addUnloadHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
143
|
-
/**
|
|
144
|
-
* Watches and tracks changes for accesses to the current config, and if the accessed config changes the
|
|
145
|
-
* handler will be recalled.
|
|
146
|
-
* @param handler
|
|
147
|
-
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
148
|
-
*/
|
|
149
|
-
onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
|
|
150
|
-
protected releaseQueue(): void;
|
|
151
|
-
/**
|
|
152
|
-
* Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
|
|
153
|
-
* @param updateCtx - The plugin update context
|
|
154
|
-
* @param updateState - The Update State
|
|
155
|
-
* @returns boolean - True means the extension class will call updateState otherwise the Core will
|
|
156
|
-
*/
|
|
157
|
-
protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
|
|
158
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
2
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
3
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
4
|
-
import { IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
5
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
6
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
7
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
8
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
9
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
10
|
-
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
11
|
-
import { UnloadHandler } from "./UnloadHandlerContainer";
|
|
12
|
-
import { IUnloadHookContainer } from "./UnloadHookContainer";
|
|
13
|
-
/**
|
|
14
|
-
* BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins
|
|
15
|
-
* can avoid implementation the same set of boiler plate code as well as provide a base
|
|
16
|
-
* implementation so that new default implementations can be added without breaking all plugins.
|
|
17
|
-
*/
|
|
18
|
-
export declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
19
|
-
identifier: string;
|
|
20
|
-
version?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Holds the core instance that was used during initialization
|
|
23
|
-
*/
|
|
24
|
-
core: IAppInsightsCore;
|
|
25
|
-
priority: number;
|
|
26
|
-
/**
|
|
27
|
-
* Call back for telemetry processing before it it is sent
|
|
28
|
-
* @param env - This is the current event being reported
|
|
29
|
-
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances
|
|
30
|
-
* can optionally use this to access the current core instance or define / pass additional information
|
|
31
|
-
* to later plugins (vs appending items to the telemetry item)
|
|
32
|
-
*/
|
|
33
|
-
processNext: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;
|
|
34
|
-
/**
|
|
35
|
-
* Set next extension for telemetry processing
|
|
36
|
-
*/
|
|
37
|
-
setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the current diagnostic logger that can be used to log issues, if no logger is currently
|
|
40
|
-
* assigned a new default one will be created and returned.
|
|
41
|
-
*/
|
|
42
|
-
diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
|
|
43
|
-
/**
|
|
44
|
-
* Returns whether the plugin has been initialized
|
|
45
|
-
*/
|
|
46
|
-
isInitialized: () => boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Helper to return the current IProcessTelemetryContext, if the passed argument exists this just
|
|
49
|
-
* returns that value (helps with minification for callers), otherwise it will return the configured
|
|
50
|
-
* context or a temporary one.
|
|
51
|
-
* @param currentCtx - [Optional] The current execution context
|
|
52
|
-
*/
|
|
53
|
-
protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
|
|
54
|
-
/**
|
|
55
|
-
* Internal helper to allow setting of the internal initialized setting for inherited instances and unit testing
|
|
56
|
-
*/
|
|
57
|
-
protected setInitialized: (isInitialized: boolean) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Teardown / Unload hook to allow implementations to perform some additional unload operations before the BaseTelemetryPlugin
|
|
60
|
-
* finishes it's removal.
|
|
61
|
-
* @param unloadCtx - This is the context that should be used during unloading.
|
|
62
|
-
* @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
|
|
63
|
-
* @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async unload/teardown operations.
|
|
64
|
-
* @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
|
|
65
|
-
*/
|
|
66
|
-
protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Extension hook to allow implementations to perform some additional update operations before the BaseTelemetryPlugin finishes it's removal
|
|
69
|
-
* @param updateCtx - This is the context that should be used during updating.
|
|
70
|
-
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
71
|
-
* @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async update operations.
|
|
72
|
-
* @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
|
|
73
|
-
*/
|
|
74
|
-
protected _doUpdate?: (updateCtx?: IProcessTelemetryUpdateContext, updateState?: ITelemetryUpdateState, asyncCallback?: () => void) => void | boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Exposes the underlying unload hook container instance for this extension to allow it to be passed down to any sub components of the class.
|
|
77
|
-
* This should NEVER be exposed or called publically as it's scope is for internal use by BaseTelemetryPlugin and any derived class (which is why
|
|
78
|
-
* it's scoped as protected)
|
|
79
|
-
*/
|
|
80
|
-
protected readonly _unloadHooks: IUnloadHookContainer;
|
|
81
|
-
constructor();
|
|
82
|
-
initialize(config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
83
|
-
/**
|
|
84
|
-
* Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and
|
|
85
|
-
* therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further
|
|
86
|
-
* processTelemetry calls are ignored and it just calls the processNext() with the provided context.
|
|
87
|
-
* @param unloadCtx - This is the context that should be used during unloading.
|
|
88
|
-
* @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
|
|
89
|
-
* @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
|
|
90
|
-
*/
|
|
91
|
-
teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
|
|
92
|
-
abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
93
|
-
/**
|
|
94
|
-
* The the plugin should re-evaluate configuration and update any cached configuration settings.
|
|
95
|
-
* @param updateCtx - This is the context that should be used during updating.
|
|
96
|
-
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
97
|
-
* @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.
|
|
98
|
-
*/
|
|
99
|
-
update(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Add an unload handler that will be called when the SDK is being unloaded
|
|
102
|
-
* @param handler - the handler
|
|
103
|
-
*/
|
|
104
|
-
protected _addUnloadCb(handler: UnloadHandler): void;
|
|
105
|
-
/**
|
|
106
|
-
* Add this hook so that it is automatically removed during unloading
|
|
107
|
-
* @param hooks - The single hook or an array of IInstrumentHook objects
|
|
108
|
-
*/
|
|
109
|
-
protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
110
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ChannelControllerPriority = 500;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
2
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
3
|
-
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
4
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
5
|
-
/**
|
|
6
|
-
* Helper to return the ICookieMgr from the core (if not null/undefined) or a default implementation
|
|
7
|
-
* associated with the configuration or a legacy default.
|
|
8
|
-
* @param core
|
|
9
|
-
* @param config
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
export declare function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration): ICookieMgr;
|
|
13
|
-
export declare function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
14
|
-
export declare function areCookiesSupported(logger?: IDiagnosticLogger): any;
|
|
15
|
-
export declare function uaDisallowsSameSiteNone(userAgent: string): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const Undefined = "undefined";
|
|
2
|
-
export declare function newGuid(): string;
|
|
3
|
-
/**
|
|
4
|
-
* The strEndsWith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.
|
|
5
|
-
* @param value - The value to check whether it ends with the search value.
|
|
6
|
-
* @param search - The characters to be searched for at the end of the value.
|
|
7
|
-
* @returns true if the given search value is found at the end of the string, otherwise false.
|
|
8
|
-
*/
|
|
9
|
-
export declare function strEndsWith(value: string, search: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* generate W3C trace id
|
|
12
|
-
*/
|
|
13
|
-
export declare function generateW3CId(): string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface IDataCache {
|
|
2
|
-
id: string;
|
|
3
|
-
accept: (target: any) => boolean;
|
|
4
|
-
get: <T>(target: any, name: string, defValue?: T, addDefault?: boolean) => T;
|
|
5
|
-
kill: (target: any, name: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function createUniqueNamespace(name: string, includeVersion?: boolean): string;
|
|
8
|
-
export declare function createElmNodeData(name?: string): {
|
|
9
|
-
id: string;
|
|
10
|
-
accept: (target: any) => boolean;
|
|
11
|
-
get: <T>(target: any, name: string, defValue?: T, addDefault?: boolean) => T;
|
|
12
|
-
kill: (target: any, name: string) => void;
|
|
13
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
2
|
-
import { IDbgExtension } from "../JavaScriptSDK.Interfaces/IDbgExtension";
|
|
3
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
4
|
-
export declare function getDebugExt(config: IConfiguration): IDbgExtension;
|
|
5
|
-
export declare function getDebugListener(config: IConfiguration): INotificationListener;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { LoggingSeverity, _InternalMessageId } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
2
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
3
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
4
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
5
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
6
|
-
export declare class _InternalLogMessage {
|
|
7
|
-
static dataType: string;
|
|
8
|
-
message: string;
|
|
9
|
-
messageId: _InternalMessageId;
|
|
10
|
-
constructor(msgId: _InternalMessageId, msg: string, isUserAct?: boolean, properties?: Object);
|
|
11
|
-
}
|
|
12
|
-
export declare function safeGetLogger(core: IAppInsightsCore, config?: IConfiguration): IDiagnosticLogger;
|
|
13
|
-
export declare class DiagnosticLogger implements IDiagnosticLogger {
|
|
14
|
-
identifier: string;
|
|
15
|
-
/**
|
|
16
|
-
* The internal logging queue
|
|
17
|
-
*/
|
|
18
|
-
queue: _InternalLogMessage[];
|
|
19
|
-
constructor(config?: IConfiguration);
|
|
20
|
-
/**
|
|
21
|
-
* 0: OFF (default)
|
|
22
|
-
* 1: CRITICAL
|
|
23
|
-
* 2: >= WARNING
|
|
24
|
-
*/
|
|
25
|
-
consoleLoggingLevel(): number;
|
|
26
|
-
/**
|
|
27
|
-
* This method will throw exceptions in debug mode or attempt to log the error as a console warning.
|
|
28
|
-
* @param severity - {LoggingSeverity} - The severity of the log message
|
|
29
|
-
* @param message - {_InternalLogMessage} - The log message.
|
|
30
|
-
*/
|
|
31
|
-
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
32
|
-
/**
|
|
33
|
-
* This will write a warning to the console if possible
|
|
34
|
-
* @param message - {string} - The warning message
|
|
35
|
-
*/
|
|
36
|
-
warnToConsole(message: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* This will write an error to the console if possible
|
|
39
|
-
* @param message - {string} - The warning message
|
|
40
|
-
*/
|
|
41
|
-
errorToConsole(message: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Resets the internal message count
|
|
44
|
-
*/
|
|
45
|
-
resetInternalMessageCount(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Logs a message to the internal queue.
|
|
48
|
-
* @param severity - {LoggingSeverity} - The severity of the log message
|
|
49
|
-
* @param message - {_InternalLogMessage} - The message to log.
|
|
50
|
-
*/
|
|
51
|
-
logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
52
|
-
update(updateState: ITelemetryUpdateState): void;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* This is a helper method which will call throwInternal on the passed logger, will throw exceptions in
|
|
56
|
-
* debug mode or attempt to log the error as a console warning. This helper is provided mostly to better
|
|
57
|
-
* support minification as logger.throwInternal() will not compress the publish "throwInternal" used throughout
|
|
58
|
-
* the code.
|
|
59
|
-
* @param logger - The Diagnostic Logger instance to use.
|
|
60
|
-
* @param severity - {LoggingSeverity} - The severity of the log message
|
|
61
|
-
* @param message - {_InternalLogMessage} - The log message.
|
|
62
|
-
*/
|
|
63
|
-
export declare function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
64
|
-
/**
|
|
65
|
-
* This is a helper method which will call warnToConsole on the passed logger with the provided message.
|
|
66
|
-
* @param logger - The Diagnostic Logger instance to use.
|
|
67
|
-
* @param message - {_InternalLogMessage} - The log message.
|
|
68
|
-
*/
|
|
69
|
-
export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
|
|
70
|
-
/**
|
|
71
|
-
* Logs a message to the internal queue.
|
|
72
|
-
* @param logger - The Diagnostic Logger instance to use.
|
|
73
|
-
* @param severity - {LoggingSeverity} - The severity of the log message
|
|
74
|
-
* @param message - {_InternalLogMessage} - The message to log.
|
|
75
|
-
*/
|
|
76
|
-
export declare function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;
|