@microsoft/applicationinsights-core-js 2.7.5-nightly.2204-03 → 2.7.6
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 +774 -1973
- 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 +9840 -16439
- package/dist/applicationinsights-core-js.api.md +48 -425
- package/dist/applicationinsights-core-js.d.ts +123 -784
- package/dist/applicationinsights-core-js.js +774 -1973
- 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 +123 -784
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +69 -3
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +99 -496
- package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +21 -120
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +87 -202
- package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Constants.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +4 -4
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +148 -7
- package/dist-esm/JavaScriptSDK/CoreUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +14 -27
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +12 -13
- package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +86 -89
- package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -3
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +42 -37
- package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +119 -430
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +4 -30
- package/dist-esm/JavaScriptSDK/RandomHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +14 -60
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js.map +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryPluginChain.js +76 -0
- package/dist-esm/JavaScriptSDK/TelemetryPluginChain.js.map +1 -0
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +96 -90
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +2 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +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/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/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +2 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +7 -12
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +67 -70
- package/src/JavaScriptSDK/AppInsightsCore.ts +101 -2
- package/src/JavaScriptSDK/BaseCore.ts +120 -696
- package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +31 -205
- package/src/JavaScriptSDK/ChannelController.ts +103 -242
- package/src/JavaScriptSDK/CookieMgr.ts +5 -7
- package/src/JavaScriptSDK/CoreUtils.ts +172 -8
- package/src/JavaScriptSDK/DiagnosticLogger.ts +14 -29
- package/src/JavaScriptSDK/EnvUtils.ts +12 -13
- package/src/JavaScriptSDK/HelperFuncs.ts +97 -123
- package/src/JavaScriptSDK/InstrumentHooks.ts +2 -4
- package/src/JavaScriptSDK/NotificationManager.ts +37 -34
- package/src/JavaScriptSDK/PerfManager.ts +7 -4
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +134 -543
- package/src/JavaScriptSDK/RandomHelper.ts +3 -35
- package/src/JavaScriptSDK/TelemetryHelpers.ts +21 -83
- package/src/JavaScriptSDK/TelemetryPluginChain.ts +120 -0
- package/src/JavaScriptSDK.Enums/LoggingEnums.ts +87 -184
- package/src/JavaScriptSDK.Enums/SendRequestReason.ts +0 -5
- package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +2 -82
- package/src/JavaScriptSDK.Interfaces/IChannelControls.ts +5 -16
- package/src/JavaScriptSDK.Interfaces/IInstrumentHooks.ts +6 -16
- package/src/JavaScriptSDK.Interfaces/IProcessTelemetryContext.ts +14 -94
- package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +10 -28
- package/src/JavaScriptSDK.Interfaces/ITelemetryPluginChain.ts +11 -9
- package/types/JavaScriptSDK/AppInsightsCore.d.ts +21 -0
- package/types/JavaScriptSDK/BaseCore.d.ts +3 -81
- package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +10 -53
- package/types/JavaScriptSDK/ChannelController.d.ts +17 -16
- package/types/JavaScriptSDK/CoreUtils.d.ts +48 -1
- package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -10
- package/types/JavaScriptSDK/HelperFuncs.d.ts +32 -33
- package/types/JavaScriptSDK/PerfManager.d.ts +1 -1
- package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +6 -69
- package/types/JavaScriptSDK/RandomHelper.d.ts +0 -6
- package/types/JavaScriptSDK/TelemetryHelpers.d.ts +3 -23
- package/types/JavaScriptSDK/TelemetryPluginChain.d.ts +32 -0
- package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -91
- package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -4
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +1 -72
- package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +5 -16
- package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -9
- package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +11 -82
- package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +8 -25
- package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +10 -9
- package/types/applicationinsights-core-js.d.ts +9 -18
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +0 -93
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +0 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +0 -477
- package/dist-esm/JavaScriptSDK/EventHelpers.js.map +0 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +0 -28
- package/dist-esm/JavaScriptSDK/InternalConstants.js.map +0 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +0 -81
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +0 -33
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -1
- package/src/JavaScriptSDK/DataCacheHelper.ts +0 -106
- package/src/JavaScriptSDK/EventHelpers.ts +0 -550
- package/src/JavaScriptSDK/InternalConstants.ts +0 -26
- package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +0 -111
- package/src/JavaScriptSDK/UnloadHandlerContainer.ts +0 -46
- package/src/JavaScriptSDK.Enums/TelemetryUnloadReason.ts +0 -27
- package/src/JavaScriptSDK.Enums/TelemetryUpdateReason.ts +0 -27
- package/src/JavaScriptSDK.Interfaces/ITelemetryInitializers.ts +0 -16
- package/src/JavaScriptSDK.Interfaces/ITelemetryUnloadState.ts +0 -10
- package/src/JavaScriptSDK.Interfaces/ITelemetryUpdateState.ts +0 -34
- package/src/JavaScriptSDK.Interfaces/IUnloadableComponent.ts +0 -17
- package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
- package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
- package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
- package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
- package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -11
- package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
- package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -20
- package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -13
- package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
- package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -22
- package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare enum LoggingSeverity {
|
|
2
2
|
/**
|
|
3
3
|
* Error will be sent as internal telemetry
|
|
4
4
|
*/
|
|
@@ -8,95 +8,6 @@ export declare const enum eLoggingSeverity {
|
|
|
8
8
|
*/
|
|
9
9
|
WARNING = 2
|
|
10
10
|
}
|
|
11
|
-
export declare const LoggingSeverity: {
|
|
12
|
-
CRITICAL: number;
|
|
13
|
-
WARNING: number;
|
|
14
|
-
};
|
|
15
|
-
export declare type LoggingSeverity = number | eLoggingSeverity;
|
|
16
|
-
export declare const enum _eInternalMessageId {
|
|
17
|
-
BrowserDoesNotSupportLocalStorage = 0,
|
|
18
|
-
BrowserCannotReadLocalStorage = 1,
|
|
19
|
-
BrowserCannotReadSessionStorage = 2,
|
|
20
|
-
BrowserCannotWriteLocalStorage = 3,
|
|
21
|
-
BrowserCannotWriteSessionStorage = 4,
|
|
22
|
-
BrowserFailedRemovalFromLocalStorage = 5,
|
|
23
|
-
BrowserFailedRemovalFromSessionStorage = 6,
|
|
24
|
-
CannotSendEmptyTelemetry = 7,
|
|
25
|
-
ClientPerformanceMathError = 8,
|
|
26
|
-
ErrorParsingAISessionCookie = 9,
|
|
27
|
-
ErrorPVCalc = 10,
|
|
28
|
-
ExceptionWhileLoggingError = 11,
|
|
29
|
-
FailedAddingTelemetryToBuffer = 12,
|
|
30
|
-
FailedMonitorAjaxAbort = 13,
|
|
31
|
-
FailedMonitorAjaxDur = 14,
|
|
32
|
-
FailedMonitorAjaxOpen = 15,
|
|
33
|
-
FailedMonitorAjaxRSC = 16,
|
|
34
|
-
FailedMonitorAjaxSend = 17,
|
|
35
|
-
FailedMonitorAjaxGetCorrelationHeader = 18,
|
|
36
|
-
FailedToAddHandlerForOnBeforeUnload = 19,
|
|
37
|
-
FailedToSendQueuedTelemetry = 20,
|
|
38
|
-
FailedToReportDataLoss = 21,
|
|
39
|
-
FlushFailed = 22,
|
|
40
|
-
MessageLimitPerPVExceeded = 23,
|
|
41
|
-
MissingRequiredFieldSpecification = 24,
|
|
42
|
-
NavigationTimingNotSupported = 25,
|
|
43
|
-
OnError = 26,
|
|
44
|
-
SessionRenewalDateIsZero = 27,
|
|
45
|
-
SenderNotInitialized = 28,
|
|
46
|
-
StartTrackEventFailed = 29,
|
|
47
|
-
StopTrackEventFailed = 30,
|
|
48
|
-
StartTrackFailed = 31,
|
|
49
|
-
StopTrackFailed = 32,
|
|
50
|
-
TelemetrySampledAndNotSent = 33,
|
|
51
|
-
TrackEventFailed = 34,
|
|
52
|
-
TrackExceptionFailed = 35,
|
|
53
|
-
TrackMetricFailed = 36,
|
|
54
|
-
TrackPVFailed = 37,
|
|
55
|
-
TrackPVFailedCalc = 38,
|
|
56
|
-
TrackTraceFailed = 39,
|
|
57
|
-
TransmissionFailed = 40,
|
|
58
|
-
FailedToSetStorageBuffer = 41,
|
|
59
|
-
FailedToRestoreStorageBuffer = 42,
|
|
60
|
-
InvalidBackendResponse = 43,
|
|
61
|
-
FailedToFixDepricatedValues = 44,
|
|
62
|
-
InvalidDurationValue = 45,
|
|
63
|
-
TelemetryEnvelopeInvalid = 46,
|
|
64
|
-
CreateEnvelopeError = 47,
|
|
65
|
-
CannotSerializeObject = 48,
|
|
66
|
-
CannotSerializeObjectNonSerializable = 49,
|
|
67
|
-
CircularReferenceDetected = 50,
|
|
68
|
-
ClearAuthContextFailed = 51,
|
|
69
|
-
ExceptionTruncated = 52,
|
|
70
|
-
IllegalCharsInName = 53,
|
|
71
|
-
ItemNotInArray = 54,
|
|
72
|
-
MaxAjaxPerPVExceeded = 55,
|
|
73
|
-
MessageTruncated = 56,
|
|
74
|
-
NameTooLong = 57,
|
|
75
|
-
SampleRateOutOfRange = 58,
|
|
76
|
-
SetAuthContextFailed = 59,
|
|
77
|
-
SetAuthContextFailedAccountName = 60,
|
|
78
|
-
StringValueTooLong = 61,
|
|
79
|
-
StartCalledMoreThanOnce = 62,
|
|
80
|
-
StopCalledWithoutStart = 63,
|
|
81
|
-
TelemetryInitializerFailed = 64,
|
|
82
|
-
TrackArgumentsNotSpecified = 65,
|
|
83
|
-
UrlTooLong = 66,
|
|
84
|
-
SessionStorageBufferFull = 67,
|
|
85
|
-
CannotAccessCookie = 68,
|
|
86
|
-
IdTooLong = 69,
|
|
87
|
-
InvalidEvent = 70,
|
|
88
|
-
FailedMonitorAjaxSetRequestHeader = 71,
|
|
89
|
-
SendBrowserInfoOnUserInit = 72,
|
|
90
|
-
PluginException = 73,
|
|
91
|
-
NotificationException = 74,
|
|
92
|
-
SnippetScriptLoadFailure = 99,
|
|
93
|
-
InvalidInstrumentationKey = 100,
|
|
94
|
-
CannotParseAiBlobValue = 101,
|
|
95
|
-
InvalidContentBlob = 102,
|
|
96
|
-
TrackPageActionEventFailed = 103,
|
|
97
|
-
FailedAddingCustomDefinedRequestContext = 104,
|
|
98
|
-
InMemoryStorageBufferFull = 105
|
|
99
|
-
}
|
|
100
11
|
/**
|
|
101
12
|
* Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered
|
|
102
13
|
*/
|
|
@@ -184,4 +95,4 @@ export declare const _InternalMessageId: {
|
|
|
184
95
|
FailedAddingCustomDefinedRequestContext: number;
|
|
185
96
|
InMemoryStorageBufferFull: number;
|
|
186
97
|
};
|
|
187
|
-
export declare type _InternalMessageId = number |
|
|
98
|
+
export declare type _InternalMessageId = number | typeof _InternalMessageId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITelemetryItem } from "./ITelemetryItem";
|
|
2
2
|
import { IChannelControls } from "./IChannelControls";
|
|
3
|
-
import { IPlugin
|
|
3
|
+
import { IPlugin } from "./ITelemetryPlugin";
|
|
4
4
|
import { IConfiguration } from "./IConfiguration";
|
|
5
5
|
import { INotificationManager } from "./INotificationManager";
|
|
6
6
|
import { INotificationListener } from "./INotificationListener";
|
|
@@ -8,27 +8,6 @@ import { IDiagnosticLogger } from "./IDiagnosticLogger";
|
|
|
8
8
|
import { IProcessTelemetryContext } from "./IProcessTelemetryContext";
|
|
9
9
|
import { IPerfManagerProvider } from "./IPerfManager";
|
|
10
10
|
import { ICookieMgr } from "./ICookieMgr";
|
|
11
|
-
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "./ITelemetryInitializers";
|
|
12
|
-
import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
|
|
13
|
-
import { UnloadHandler } from "../JavaScriptSDK/UnloadHandlerContainer";
|
|
14
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
15
|
-
export interface ILoadedPlugin<T extends IPlugin> {
|
|
16
|
-
plugin: T;
|
|
17
|
-
/**
|
|
18
|
-
* Identifies whether the plugin is enabled and can process events. This is slightly different from isInitialized as the plugin may be initialized but disabled
|
|
19
|
-
* via the setEnabled() or it may be a shared plugin which has had it's teardown function called from another instance..
|
|
20
|
-
* @returns boolean = true if the plugin is in a state where it is operational.
|
|
21
|
-
*/
|
|
22
|
-
isEnabled: () => boolean;
|
|
23
|
-
/**
|
|
24
|
-
* You can optionally enable / disable a plugin from processing events.
|
|
25
|
-
* Setting enabled to true will not necessarily cause the `isEnabled()` to also return true
|
|
26
|
-
* as the plugin must also have been successfully initialized and not had it's `teardown` method called
|
|
27
|
-
* (unless it's also been re-initialized)
|
|
28
|
-
*/
|
|
29
|
-
setEnabled: (isEnabled: boolean) => void;
|
|
30
|
-
remove: (isAsync?: boolean, removeCb?: (removed?: boolean) => void) => void;
|
|
31
|
-
}
|
|
32
11
|
export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
33
12
|
config: IConfiguration;
|
|
34
13
|
logger: IDiagnosticLogger;
|
|
@@ -64,60 +43,10 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
64
43
|
* @param {INotificationListener} listener - INotificationListener to remove.
|
|
65
44
|
*/
|
|
66
45
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
67
|
-
/**
|
|
68
|
-
* Add a telemetry processor to decorate or drop telemetry events.
|
|
69
|
-
* @param telemetryInitializer - The Telemetry Initializer function
|
|
70
|
-
* @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
|
|
71
|
-
*/
|
|
72
|
-
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
|
|
73
46
|
pollInternalLogs?(eventName?: string): number;
|
|
74
47
|
stopPollingInternalLogs?(): void;
|
|
75
48
|
/**
|
|
76
49
|
* Return a new instance of the IProcessTelemetryContext for processing events
|
|
77
50
|
*/
|
|
78
51
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
79
|
-
/**
|
|
80
|
-
* Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered
|
|
81
|
-
* to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous
|
|
82
|
-
* unload call return `true` stating that all plugins reported that they also unloaded, the recommended
|
|
83
|
-
* approach is to create a new instance and initialize that instance.
|
|
84
|
-
* This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
|
|
85
|
-
* to successfully remove any global references or they may just be completing the unload process asynchronously.
|
|
86
|
-
* @param isAsync - Can the unload be performed asynchronously (default)
|
|
87
|
-
* @param unloadComplete - An optional callback that will be called once the unload has completed
|
|
88
|
-
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
89
|
-
*/
|
|
90
|
-
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
91
|
-
/**
|
|
92
|
-
* Find and return the (first) plugin with the specified identifier if present
|
|
93
|
-
* @param pluginIdentifier
|
|
94
|
-
*/
|
|
95
|
-
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
96
|
-
/**
|
|
97
|
-
* Add a new plugin to the installation
|
|
98
|
-
* @param plugin - The new plugin to add
|
|
99
|
-
* @param replaceExisting - should any existing plugin be replaced, default is false
|
|
100
|
-
* @param doAsync - Should the add be performed asynchronously
|
|
101
|
-
* @param addCb - [Optional] callback to call after the plugin has been added
|
|
102
|
-
*/
|
|
103
|
-
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
104
|
-
/**
|
|
105
|
-
* Returns the unique event namespace that should be used when registering events
|
|
106
|
-
*/
|
|
107
|
-
evtNamespace(): string;
|
|
108
|
-
/**
|
|
109
|
-
* Add a handler that will be called when the SDK is being unloaded
|
|
110
|
-
* @param handler - the handler
|
|
111
|
-
*/
|
|
112
|
-
addUnloadCb(handler: UnloadHandler): void;
|
|
113
|
-
/**
|
|
114
|
-
* Flush and send any batched / cached data immediately
|
|
115
|
-
* @param async - send data asynchronously when true (defaults to true)
|
|
116
|
-
* @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.
|
|
117
|
-
* If the caller doesn't return true the caller should assume that it may never be called.
|
|
118
|
-
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
119
|
-
* @param cbTimeout - An optional timeout to wait for any flush operations to complete before proceeding with the unload. Defaults to 5 seconds.
|
|
120
|
-
* @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
|
|
121
|
-
*/
|
|
122
|
-
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
123
52
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
2
|
-
import { IProcessTelemetryUnloadContext } from "./IProcessTelemetryContext";
|
|
3
1
|
import { ITelemetryPlugin } from "./ITelemetryPlugin";
|
|
4
|
-
import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
|
|
5
2
|
/**
|
|
6
3
|
* Provides data transmission capabilities
|
|
7
4
|
*/
|
|
@@ -15,22 +12,14 @@ export interface IChannelControls extends ITelemetryPlugin {
|
|
|
15
12
|
*/
|
|
16
13
|
resume(): void;
|
|
17
14
|
/**
|
|
18
|
-
* Tear down
|
|
19
|
-
* therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further
|
|
20
|
-
* processTelemetry calls are ignored and it just calls the processNext() with the provided context.
|
|
21
|
-
* @param unloadCtx - This is the context that should be used during unloading.
|
|
22
|
-
* @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.
|
|
23
|
-
* @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
|
|
15
|
+
* Tear down transmission pipeline
|
|
24
16
|
*/
|
|
25
|
-
teardown
|
|
17
|
+
teardown(): void;
|
|
26
18
|
/**
|
|
27
19
|
* Flush to send data immediately; channel should default to sending data asynchronously
|
|
28
|
-
* @param async
|
|
29
|
-
* @param callBack
|
|
30
|
-
* If the caller doesn't return true the caller should assume that it may never be called.
|
|
31
|
-
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
32
|
-
* @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
|
|
20
|
+
* @param async: send data asynchronously when true
|
|
21
|
+
* @param callBack: if specified, notify caller when send is complete
|
|
33
22
|
*/
|
|
34
|
-
flush(async: boolean, callBack?: (
|
|
23
|
+
flush(async: boolean, callBack?: () => void): void;
|
|
35
24
|
}
|
|
36
25
|
export declare const MinChannelPriorty: number;
|
|
@@ -8,11 +8,6 @@ export declare type InstrumentorHooksCallback = (funcArgs: IInstrumentCallDetail
|
|
|
8
8
|
* You must always supply the error callback
|
|
9
9
|
*/
|
|
10
10
|
export interface IInstrumentHooksCallbacks {
|
|
11
|
-
/**
|
|
12
|
-
* [Optional] Namespace details (same as the namespace used for events), useful for debugging and testing to
|
|
13
|
-
* identify the source of the instrumented hooks
|
|
14
|
-
*/
|
|
15
|
-
ns?: string | string[];
|
|
16
11
|
/**
|
|
17
12
|
* The hook callback to call before the original function is called
|
|
18
13
|
*/
|
|
@@ -73,8 +68,4 @@ export interface IInstrumentCallDetails {
|
|
|
73
68
|
* The error (exception) which occurred while executing the original method
|
|
74
69
|
*/
|
|
75
70
|
err?: Error;
|
|
76
|
-
/**
|
|
77
|
-
* The Event object from (window.event) at the start of the original call
|
|
78
|
-
*/
|
|
79
|
-
evt?: Event;
|
|
80
71
|
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { IAppInsightsCore } from "./IAppInsightsCore";
|
|
2
|
-
import { IConfiguration } from "./IConfiguration";
|
|
3
2
|
import { IDiagnosticLogger } from "./IDiagnosticLogger";
|
|
3
|
+
import { IConfiguration } from "./IConfiguration";
|
|
4
4
|
import { ITelemetryItem } from "./ITelemetryItem";
|
|
5
|
-
import { IPlugin
|
|
5
|
+
import { IPlugin } from "./ITelemetryPlugin";
|
|
6
6
|
import { ITelemetryPluginChain } from "./ITelemetryPluginChain";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
MergeDefaultFromRootOrDefault = 2
|
|
13
|
-
}
|
|
14
|
-
export interface IBaseProcessingContext {
|
|
7
|
+
/**
|
|
8
|
+
* The current context for the current call to processTelemetry(), used to support sharing the same plugin instance
|
|
9
|
+
* between multiple AppInsights instances
|
|
10
|
+
*/
|
|
11
|
+
export interface IProcessTelemetryContext {
|
|
15
12
|
/**
|
|
16
13
|
* The current core instance for the request
|
|
17
14
|
*/
|
|
@@ -27,7 +24,7 @@ export interface IBaseProcessingContext {
|
|
|
27
24
|
/**
|
|
28
25
|
* Gets the named extension config
|
|
29
26
|
*/
|
|
30
|
-
getExtCfg: <T>(identifier: string, defaultValue?: T | any
|
|
27
|
+
getExtCfg: <T>(identifier: string, defaultValue?: T | any) => T;
|
|
31
28
|
/**
|
|
32
29
|
* Gets the named config from either the named identifier extension or core config if neither exist then the
|
|
33
30
|
* default value is returned
|
|
@@ -35,7 +32,7 @@ export interface IBaseProcessingContext {
|
|
|
35
32
|
* @param field The config field name
|
|
36
33
|
* @param defaultValue The default value to return if no defined config exists
|
|
37
34
|
*/
|
|
38
|
-
getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean
|
|
35
|
+
getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean) => number | string | boolean;
|
|
39
36
|
/**
|
|
40
37
|
* Helper to allow plugins to check and possibly shortcut executing code only
|
|
41
38
|
* required if there is a nextPlugin
|
|
@@ -49,41 +46,13 @@ export interface IBaseProcessingContext {
|
|
|
49
46
|
* Helper to set the next plugin proxy
|
|
50
47
|
*/
|
|
51
48
|
setNext: (nextCtx: ITelemetryPluginChain) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Synchronously iterate over the context chain running the callback for each plugin, once
|
|
54
|
-
* every plugin has been executed via the callback, any associated onComplete will be called.
|
|
55
|
-
* @param callback - The function call for each plugin in the context chain
|
|
56
|
-
*/
|
|
57
|
-
iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
|
|
58
|
-
/**
|
|
59
|
-
* Set the function to call when the current chain has executed all processNext or unloadNext items.
|
|
60
|
-
* @param onComplete - The onComplete to call
|
|
61
|
-
* @param that - The "this" value to use for the onComplete call, if not provided or undefined defaults to the current context
|
|
62
|
-
* @param args - Any additional arguments to pass to the onComplete function
|
|
63
|
-
*/
|
|
64
|
-
onComplete: (onComplete: () => void, that?: any, ...args: any[]) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Create a new context using the core and config from the current instance, returns a new instance of the same type
|
|
67
|
-
* @param plugins - The execution order to process the plugins, if null or not supplied
|
|
68
|
-
* then the current execution order will be copied.
|
|
69
|
-
* @param startAt - The plugin to start processing from, if missing from the execution
|
|
70
|
-
* order then the next plugin will be NOT set.
|
|
71
|
-
*/
|
|
72
|
-
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IBaseProcessingContext;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* The current context for the current call to processTelemetry(), used to support sharing the same plugin instance
|
|
76
|
-
* between multiple AppInsights instances
|
|
77
|
-
*/
|
|
78
|
-
export interface IProcessTelemetryContext extends IBaseProcessingContext {
|
|
79
49
|
/**
|
|
80
50
|
* Call back for telemetry processing before it it is sent
|
|
81
51
|
* @param env - This is the current event being reported
|
|
82
|
-
* @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
|
|
83
52
|
*/
|
|
84
|
-
processNext: (env: ITelemetryItem) =>
|
|
53
|
+
processNext: (env: ITelemetryItem) => void;
|
|
85
54
|
/**
|
|
86
|
-
* Create a new context using the core and config from the current instance
|
|
55
|
+
* Create a new context using the core and config from the current instance
|
|
87
56
|
* @param plugins - The execution order to process the plugins, if null or not supplied
|
|
88
57
|
* then the current execution order will be copied.
|
|
89
58
|
* @param startAt - The plugin to start processing from, if missing from the execution
|
|
@@ -91,43 +60,3 @@ export interface IProcessTelemetryContext extends IBaseProcessingContext {
|
|
|
91
60
|
*/
|
|
92
61
|
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
|
|
93
62
|
}
|
|
94
|
-
/**
|
|
95
|
-
* The current context for the current call to teardown() implementations, used to support when plugins are being removed
|
|
96
|
-
* or the SDK is being unloaded.
|
|
97
|
-
*/
|
|
98
|
-
export interface IProcessTelemetryUnloadContext extends IBaseProcessingContext {
|
|
99
|
-
/**
|
|
100
|
-
* This Plugin has finished unloading, so unload the next one
|
|
101
|
-
* @param uploadState - The state of the unload process
|
|
102
|
-
* @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
|
|
103
|
-
*/
|
|
104
|
-
processNext: (unloadState: ITelemetryUnloadState) => boolean | void;
|
|
105
|
-
/**
|
|
106
|
-
* Create a new context using the core and config from the current instance, returns a new instance of the same type
|
|
107
|
-
* @param plugins - The execution order to process the plugins, if null or not supplied
|
|
108
|
-
* then the current execution order will be copied.
|
|
109
|
-
* @param startAt - The plugin to start processing from, if missing from the execution
|
|
110
|
-
* order then the next plugin will be NOT set.
|
|
111
|
-
*/
|
|
112
|
-
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUnloadContext;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* The current context for the current call to the plugin update() implementations, used to support the notifications
|
|
116
|
-
* for when plugins are added, removed or the configuration was changed.
|
|
117
|
-
*/
|
|
118
|
-
export interface IProcessTelemetryUpdateContext extends IBaseProcessingContext {
|
|
119
|
-
/**
|
|
120
|
-
* This Plugin has finished unloading, so unload the next one
|
|
121
|
-
* @param updateState - The update State
|
|
122
|
-
* @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)
|
|
123
|
-
*/
|
|
124
|
-
processNext: (updateState: ITelemetryUpdateState) => boolean | void;
|
|
125
|
-
/**
|
|
126
|
-
* Create a new context using the core and config from the current instance, returns a new instance of the same type
|
|
127
|
-
* @param plugins - The execution order to process the plugins, if null or not supplied
|
|
128
|
-
* then the current execution order will be copied.
|
|
129
|
-
* @param startAt - The plugin to start processing from, if missing from the execution
|
|
130
|
-
* order then the next plugin will be NOT set.
|
|
131
|
-
*/
|
|
132
|
-
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUpdateContext;
|
|
133
|
-
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ITelemetryItem } from "./ITelemetryItem";
|
|
2
2
|
import { IConfiguration } from "./IConfiguration";
|
|
3
3
|
import { IAppInsightsCore } from "./IAppInsightsCore";
|
|
4
|
-
import { IProcessTelemetryContext
|
|
4
|
+
import { IProcessTelemetryContext } from "./IProcessTelemetryContext";
|
|
5
5
|
import { ITelemetryPluginChain } from "./ITelemetryPluginChain";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Configuration provided to SDK core
|
|
8
|
+
*/
|
|
9
|
+
export interface ITelemetryPlugin extends IPlugin {
|
|
9
10
|
/**
|
|
10
11
|
* Call back for telemetry processing before it it is sent
|
|
11
12
|
* @param env - This is the current event being reported
|
|
@@ -14,20 +15,6 @@ export interface ITelemetryProcessor {
|
|
|
14
15
|
* to later plugins (vs appending items to the telemetry item)
|
|
15
16
|
*/
|
|
16
17
|
processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
|
|
17
|
-
/**
|
|
18
|
-
* The the plugin should re-evaluate configuration and update any cached configuration settings or
|
|
19
|
-
* plugins. If implemented this method will be called whenever a plugin is added or removed and if
|
|
20
|
-
* the configuration has bee updated.
|
|
21
|
-
* @param updateCtx - This is the context that should be used during updating.
|
|
22
|
-
* @param updateState - The details / state of the update process, it holds details like the current and previous configuration.
|
|
23
|
-
* @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.
|
|
24
|
-
*/
|
|
25
|
-
update?: (updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState) => void | boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Configuration provided to SDK core
|
|
29
|
-
*/
|
|
30
|
-
export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
|
|
31
18
|
/**
|
|
32
19
|
* Set next extension for telemetry processing, this is not optional as plugins should use the
|
|
33
20
|
* processNext() function of the passed IProcessTelemetryContext instead. It is being kept for
|
|
@@ -55,14 +42,10 @@ export interface IPlugin {
|
|
|
55
42
|
*/
|
|
56
43
|
isInitialized?: () => boolean;
|
|
57
44
|
/**
|
|
58
|
-
* Tear down the plugin and remove any hooked value, the plugin should
|
|
59
|
-
* therefore
|
|
60
|
-
* processTelemetry calls are ignored and it just calls the processNext() with the provided context.
|
|
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
|
-
* @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
|
|
45
|
+
* Tear down the plugin and remove any hooked value, the plugin should remove that it is no longer initialized and
|
|
46
|
+
* therefore can be re-initialized after being torn down.
|
|
64
47
|
*/
|
|
65
|
-
teardown?: (
|
|
48
|
+
teardown?: () => void;
|
|
66
49
|
/**
|
|
67
50
|
* Extension name
|
|
68
51
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ITelemetryItem } from "./ITelemetryItem";
|
|
2
|
+
import { IProcessTelemetryContext } from "./IProcessTelemetryContext";
|
|
3
|
+
import { ITelemetryPlugin } from "./ITelemetryPlugin";
|
|
4
4
|
/**
|
|
5
5
|
* Configuration provided to SDK core
|
|
6
6
|
*/
|
|
7
|
-
export interface ITelemetryPluginChain
|
|
7
|
+
export interface ITelemetryPluginChain {
|
|
8
8
|
/**
|
|
9
9
|
* Returns the underlying plugin that is being proxied for the processTelemetry call
|
|
10
10
|
*/
|
|
@@ -14,10 +14,11 @@ export interface ITelemetryPluginChain extends ITelemetryProcessor {
|
|
|
14
14
|
*/
|
|
15
15
|
getNext: () => ITelemetryPluginChain;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* @param
|
|
20
|
-
*
|
|
17
|
+
* Call back for telemetry processing before it it is sent
|
|
18
|
+
* @param env - This is the current event being reported
|
|
19
|
+
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances
|
|
20
|
+
* can optionally use this to access the current core instance or define / pass additional information
|
|
21
|
+
* to later plugins (vs appending items to the telemetry item)
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
processTelemetry: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;
|
|
23
24
|
}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
export { IConfiguration } from "./JavaScriptSDK.Interfaces/IConfiguration";
|
|
2
2
|
export { IChannelControls, MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";
|
|
3
3
|
export { ITelemetryPlugin, IPlugin } from "./JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
4
|
-
export { IAppInsightsCore
|
|
4
|
+
export { IAppInsightsCore } from "./JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
5
5
|
export { ITelemetryItem, ICustomProperties, Tags } from "./JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
6
|
-
export {
|
|
6
|
+
export { IProcessTelemetryContext } from "./JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
7
7
|
export { INotificationListener } from "./JavaScriptSDK.Interfaces/INotificationListener";
|
|
8
8
|
export { ITelemetryPluginChain } from "./JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
9
9
|
export { IDiagnosticLogger } from "./JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
10
10
|
export { InstrumentorHooksCallback, IInstrumentHooksCallbacks, IInstrumentHooks, IInstrumentHook, IInstrumentCallDetails } from "./JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
11
|
-
export { IUnloadableComponent } from "./JavaScriptSDK.Interfaces/IUnloadableComponent";
|
|
12
11
|
export { EventsDiscardedReason } from "./JavaScriptSDK.Enums/EventsDiscardedReason";
|
|
13
12
|
export { SendRequestReason } from "./JavaScriptSDK.Enums/SendRequestReason";
|
|
14
|
-
export { TelemetryUpdateReason } from "./JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
15
|
-
export { TelemetryUnloadReason } from "./JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
16
13
|
export { AppInsightsCore } from "./JavaScriptSDK/AppInsightsCore";
|
|
17
14
|
export { BaseCore } from "./JavaScriptSDK/BaseCore";
|
|
18
15
|
export { BaseTelemetryPlugin } from "./JavaScriptSDK/BaseTelemetryPlugin";
|
|
19
|
-
export { randomValue, random32, mwcRandomSeed, mwcRandom32
|
|
20
|
-
export { CoreUtils, ICoreUtils, EventHelper, IEventHelper, Undefined, newGuid, perfNow, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr } from "./JavaScriptSDK/CoreUtils";
|
|
21
|
-
export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign,
|
|
22
|
-
export { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, _IRegisteredEvents, __getRegisteredEvents } from "./JavaScriptSDK/EventHelpers";
|
|
16
|
+
export { randomValue, random32, mwcRandomSeed, mwcRandom32 } from "./JavaScriptSDK/RandomHelper";
|
|
17
|
+
export { CoreUtils, ICoreUtils, EventHelper, IEventHelper, Undefined, addEventHandler, newGuid, perfNow, newId, generateW3CId, disableCookies, canUseCookies, getCookie, setCookie, deleteCookie, _legacyCookieMgr, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener } from "./JavaScriptSDK/CoreUtils";
|
|
18
|
+
export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal } from "./JavaScriptSDK/HelperFuncs";
|
|
23
19
|
export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from "./JavaScriptSDK/EnvUtils";
|
|
24
20
|
export { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from "@microsoft/applicationinsights-shims";
|
|
25
21
|
export { NotificationManager } from "./JavaScriptSDK/NotificationManager";
|
|
@@ -27,18 +23,13 @@ export { INotificationManager } from "./JavaScriptSDK.Interfaces/INotificationMa
|
|
|
27
23
|
export { IPerfEvent } from "./JavaScriptSDK.Interfaces/IPerfEvent";
|
|
28
24
|
export { IPerfManager, IPerfManagerProvider } from "./JavaScriptSDK.Interfaces/IPerfManager";
|
|
29
25
|
export { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from "./JavaScriptSDK/PerfManager";
|
|
30
|
-
export { safeGetLogger, DiagnosticLogger, _InternalLogMessage
|
|
31
|
-
export { ProcessTelemetryContext
|
|
32
|
-
export { initializePlugins, sortPlugins
|
|
33
|
-
export { _InternalMessageId,
|
|
26
|
+
export { safeGetLogger, DiagnosticLogger, _InternalLogMessage } from "./JavaScriptSDK/DiagnosticLogger";
|
|
27
|
+
export { ProcessTelemetryContext } from "./JavaScriptSDK/ProcessTelemetryContext";
|
|
28
|
+
export { initializePlugins, sortPlugins } from "./JavaScriptSDK/TelemetryHelpers";
|
|
29
|
+
export { _InternalMessageId, LoggingSeverity } from "./JavaScriptSDK.Enums/LoggingEnums";
|
|
34
30
|
export { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs } from "./JavaScriptSDK/InstrumentHooks";
|
|
35
31
|
export { ICookieMgr, ICookieMgrConfig } from "./JavaScriptSDK.Interfaces/ICookieMgr";
|
|
36
32
|
export { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from "./JavaScriptSDK/CookieMgr";
|
|
37
33
|
export { strIKey, strExtensionConfig } from "./JavaScriptSDK/Constants";
|
|
38
34
|
export { IDbgExtension } from "./JavaScriptSDK.Interfaces/IDbgExtension";
|
|
39
35
|
export { getDebugListener, getDebugExt } from "./JavaScriptSDK/DbgExtensionUtils";
|
|
40
|
-
export { TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer } from "./JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
41
|
-
export { createUniqueNamespace } from "./JavaScriptSDK/DataCacheHelper";
|
|
42
|
-
export { UnloadHandler, IUnloadHandlerContainer, createUnloadHandlerContainer } from "./JavaScriptSDK/UnloadHandlerContainer";
|
|
43
|
-
export { ITelemetryUpdateState } from "./JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
44
|
-
export { ITelemetryUnloadState } from "./JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|