@microsoft/applicationinsights-analytics-js 3.0.0-beta.2209-03 → 3.0.0-beta.2210-02
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-analytics-js.integrity.json +9 -9
- package/browser/applicationinsights-analytics-js.js +1013 -542
- package/browser/applicationinsights-analytics-js.js.map +1 -1
- package/browser/applicationinsights-analytics-js.min.js +2 -2
- package/browser/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.api.json +6 -44
- package/dist/applicationinsights-analytics-js.api.md +2 -6
- package/dist/applicationinsights-analytics-js.d.ts +15 -18
- package/dist/applicationinsights-analytics-js.js +1013 -542
- package/dist/applicationinsights-analytics-js.js.map +1 -1
- package/dist/applicationinsights-analytics-js.min.js +2 -2
- package/dist/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +15 -18
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js +155 -148
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +14 -15
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +9 -10
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +8 -9
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Timing.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/__DynamicConstants.js +16 -24
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +6 -6
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +177 -175
- package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +4 -4
- package/src/__DynamicConstants.ts +15 -23
- package/types/JavaScriptSDK/AnalyticsPlugin.d.ts +14 -17
- package/types/JavaScriptSDK/Telemetry/PageVisitTimeManager.d.ts +3 -3
- package/types/__DynamicConstants.d.ts +15 -23
- package/types/tsdoc-metadata.json +1 -1
|
@@ -11,29 +11,20 @@
|
|
|
11
11
|
// ###########################################################################################################################################
|
|
12
12
|
|
|
13
13
|
export const _DYN_TO_STRING = "toString"; // Count: 4
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const _DYN_OVERRIDE_PAGE_VIEW_D2 = "overridePageViewDuration"; // Count: 3
|
|
17
|
-
export const _DYN_ENABLE_UNHANDLED_PRO3 = "enableUnhandledPromiseRejectionTracking"; // Count: 3
|
|
18
|
-
export const _DYN_SAMPLING_PERCENTAGE = "samplingPercentage"; // Count: 4
|
|
19
|
-
export const _DYN_IS_STORAGE_USE_DISAB4 = "isStorageUseDisabled"; // Count: 4
|
|
20
|
-
export const _DYN_IS_BROWSER_LINK_TRAC5 = "isBrowserLinkTrackingEnabled"; // Count: 4
|
|
21
|
-
export const _DYN_ENABLE_AUTO_ROUTE_TR6 = "enableAutoRouteTracking"; // Count: 3
|
|
22
|
-
export const _DYN_NAME_PREFIX = "namePrefix"; // Count: 3
|
|
23
|
-
export const _DYN_DISABLE_FLUSH_ON_BEF7 = "disableFlushOnBeforeUnload"; // Count: 3
|
|
24
|
-
export const _DYN_DISABLE_FLUSH_ON_UNL8 = "disableFlushOnUnload"; // Count: 2
|
|
14
|
+
export const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 2
|
|
15
|
+
export const _DYN__ADD_HOOK = "_addHook"; // Count: 6
|
|
25
16
|
export const _DYN_CORE = "core"; // Count: 7
|
|
26
17
|
export const _DYN_DATA_TYPE = "dataType"; // Count: 8
|
|
27
18
|
export const _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
|
|
28
19
|
export const _DYN_DIAG_LOG = "diagLog"; // Count: 13
|
|
29
20
|
export const _DYN_TRACK = "track"; // Count: 7
|
|
30
21
|
export const _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
22
|
+
export const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit"; // Count: 3
|
|
23
|
+
export const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal"; // Count: 7
|
|
24
|
+
export const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
|
|
25
|
+
export const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 3
|
|
35
26
|
export const _DYN_HREF = "href"; // Count: 6
|
|
36
|
-
export const
|
|
27
|
+
export const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
|
|
37
28
|
export const _DYN_EXCEPTION = "exception"; // Count: 3
|
|
38
29
|
export const _DYN_ERROR = "error"; // Count: 5
|
|
39
30
|
export const _DYN__ONERROR = "_onerror"; // Count: 3
|
|
@@ -41,19 +32,20 @@ export const _DYN_ERROR_SRC = "errorSrc"; // Count: 3
|
|
|
41
32
|
export const _DYN_LINE_NUMBER = "lineNumber"; // Count: 5
|
|
42
33
|
export const _DYN_COLUMN_NUMBER = "columnNumber"; // Count: 5
|
|
43
34
|
export const _DYN_MESSAGE = "message"; // Count: 4
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
35
|
+
export const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException"; // Count: 3
|
|
36
|
+
export const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer"; // Count: 4
|
|
46
37
|
export const _DYN_DURATION = "duration"; // Count: 10
|
|
47
38
|
export const _DYN_LENGTH = "length"; // Count: 5
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
39
|
+
export const _DYN_AUTO_UNHANDLED_PROMI8 = "autoUnhandledPromiseInstrumented"; // Count: 3
|
|
40
|
+
export const _DYN_IS_PERFORMANCE_TIMIN9 = "isPerformanceTimingSupported"; // Count: 2
|
|
41
|
+
export const _DYN_GET_PERFORMANCE_TIMI10 = "getPerformanceTiming"; // Count: 2
|
|
50
42
|
export const _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
43
|
+
export const _DYN_SHOULD_COLLECT_DURAT11 = "shouldCollectDuration"; // Count: 3
|
|
44
|
+
export const _DYN_IS_PERFORMANCE_TIMIN12 = "isPerformanceTimingDataReady"; // Count: 2
|
|
53
45
|
export const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 3
|
|
54
46
|
export const _DYN_RESPONSE_START = "responseStart"; // Count: 5
|
|
55
47
|
export const _DYN_REQUEST_START = "requestStart"; // Count: 3
|
|
56
48
|
export const _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
|
|
57
49
|
export const _DYN_RESPONSE_END = "responseEnd"; // Count: 5
|
|
58
50
|
export const _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
59
|
-
export const
|
|
51
|
+
export const _DYN_PAGE_VISIT_START_TIM13 = "pageVisitStartTime"; // Count: 2
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
import { IAppInsights, IAutoExceptionTelemetry, IConfig, IEventTelemetry, IExceptionTelemetry, IMetricTelemetry, IPageViewPerformanceTelemetry, IPageViewPerformanceTelemetryInternal, IPageViewTelemetry, IPageViewTelemetryInternal, ITraceTelemetry } from "@microsoft/applicationinsights-common";
|
|
6
6
|
import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, ICookieMgr, ICustomProperties, IPlugin, IProcessTelemetryContext, ITelemetryInitializerHandler, ITelemetryItem, ITelemetryPluginChain } from "@microsoft/applicationinsights-core-js";
|
|
7
7
|
import { IAppInsightsInternal } from "./Telemetry/PageViewManager";
|
|
8
|
-
declare function _getDefaultConfig(config?: IConfig): IConfig;
|
|
9
8
|
export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
10
9
|
static Version: string;
|
|
11
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
12
10
|
identifier: string;
|
|
13
11
|
priority: number;
|
|
14
|
-
config: IConfig;
|
|
12
|
+
readonly config: IConfig;
|
|
15
13
|
queue: Array<() => void>;
|
|
16
14
|
autoRoutePVDelay: number;
|
|
17
15
|
constructor();
|
|
@@ -39,7 +37,7 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
39
37
|
}): void;
|
|
40
38
|
/**
|
|
41
39
|
* @description Log a diagnostic message
|
|
42
|
-
* @param
|
|
40
|
+
* @param trace
|
|
43
41
|
* @param ICustomProperties.
|
|
44
42
|
* @memberof ApplicationInsights
|
|
45
43
|
*/
|
|
@@ -50,24 +48,24 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
50
48
|
* use the name and average fields of {@link IMetricTelemetry}. If you take measurements
|
|
51
49
|
* frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
|
|
52
50
|
* and sending the resulting average at intervals
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
51
|
+
* @param metric - input object argument. Only name and average are mandatory.
|
|
52
|
+
* @param } customProperties additional data used to filter metrics in the
|
|
55
53
|
* portal. Defaults to empty.
|
|
56
54
|
* @memberof ApplicationInsights
|
|
57
55
|
*/
|
|
58
56
|
trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
59
57
|
/**
|
|
60
58
|
* Logs that a page or other item was viewed.
|
|
61
|
-
* @param IPageViewTelemetry The string you used as the name in startTrackPage. Defaults to the document title.
|
|
62
|
-
* @param customProperties Additional data used to filter events and metrics. Defaults to empty.
|
|
59
|
+
* @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
60
|
+
* @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
|
|
63
61
|
* If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
|
|
64
62
|
*/
|
|
65
63
|
trackPageView(pageView?: IPageViewTelemetry, customProperties?: ICustomProperties): void;
|
|
66
64
|
/**
|
|
67
65
|
* Create a page view telemetry item and send it to the SDK pipeline through the core.track API
|
|
68
|
-
* @param pageView Page view item to be sent
|
|
69
|
-
* @param properties Custom properties (Part C) that a user can add to the telemetry item
|
|
70
|
-
* @param systemProperties System level properties (Part A) that a user can add to the telemetry item
|
|
66
|
+
* @param pageView - Page view item to be sent
|
|
67
|
+
* @param properties - Custom properties (Part C) that a user can add to the telemetry item
|
|
68
|
+
* @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
|
|
71
69
|
*/
|
|
72
70
|
sendPageViewInternal(pageView: IPageViewTelemetryInternal, properties?: {
|
|
73
71
|
[key: string]: any;
|
|
@@ -94,7 +92,7 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
94
92
|
* Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,
|
|
95
93
|
* but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view
|
|
96
94
|
* and send the event.
|
|
97
|
-
* @param name A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
95
|
+
* @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
98
96
|
*/
|
|
99
97
|
startTrackPage(name?: string): void;
|
|
100
98
|
/**
|
|
@@ -124,8 +122,8 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
124
122
|
/**
|
|
125
123
|
* Log an exception you have caught.
|
|
126
124
|
*
|
|
127
|
-
* @param
|
|
128
|
-
* @param
|
|
125
|
+
* @param exception - Object which contains exception to be sent
|
|
126
|
+
* @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
129
127
|
*
|
|
130
128
|
* Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
|
|
131
129
|
* @memberof ApplicationInsights
|
|
@@ -133,11 +131,10 @@ export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IApp
|
|
|
133
131
|
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
134
132
|
/**
|
|
135
133
|
* @description Custom error handler for Application Insights Analytics
|
|
136
|
-
* @param
|
|
134
|
+
* @param exception
|
|
137
135
|
* @memberof ApplicationInsights
|
|
138
136
|
*/
|
|
139
137
|
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
140
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler
|
|
138
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
141
139
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
142
140
|
}
|
|
143
|
-
export {};
|
|
@@ -5,14 +5,14 @@ import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
|
5
5
|
export declare class PageVisitTimeManager {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new instance of PageVisitTimeManager
|
|
8
|
-
* @param pageVisitTimeTrackingHandler Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)
|
|
8
|
+
* @param pageVisitTimeTrackingHandler - Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)
|
|
9
9
|
* @returns {}
|
|
10
10
|
*/
|
|
11
11
|
constructor(logger: IDiagnosticLogger, pageVisitTimeTrackingHandler: (pageName: string, pageUrl: string, pageVisitTime: number) => void);
|
|
12
12
|
/**
|
|
13
13
|
* Tracks the previous page visit time telemetry (if exists) and starts timing of new page visit time
|
|
14
|
-
* @param currentPageName Name of page to begin timing for visit duration
|
|
15
|
-
* @param currentPageUrl Url of page to begin timing for visit duration
|
|
14
|
+
* @param currentPageName - Name of page to begin timing for visit duration
|
|
15
|
+
* @param currentPageUrl - Url of page to begin timing for visit duration
|
|
16
16
|
*/
|
|
17
17
|
trackPreviousPageVisit(currentPageName: string, currentPageUrl: string): void;
|
|
18
18
|
}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
export declare const _DYN_TO_STRING = "toString";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const _DYN_OVERRIDE_PAGE_VIEW_D2 = "overridePageViewDuration";
|
|
5
|
-
export declare const _DYN_ENABLE_UNHANDLED_PRO3 = "enableUnhandledPromiseRejectionTracking";
|
|
6
|
-
export declare const _DYN_SAMPLING_PERCENTAGE = "samplingPercentage";
|
|
7
|
-
export declare const _DYN_IS_STORAGE_USE_DISAB4 = "isStorageUseDisabled";
|
|
8
|
-
export declare const _DYN_IS_BROWSER_LINK_TRAC5 = "isBrowserLinkTrackingEnabled";
|
|
9
|
-
export declare const _DYN_ENABLE_AUTO_ROUTE_TR6 = "enableAutoRouteTracking";
|
|
10
|
-
export declare const _DYN_NAME_PREFIX = "namePrefix";
|
|
11
|
-
export declare const _DYN_DISABLE_FLUSH_ON_BEF7 = "disableFlushOnBeforeUnload";
|
|
12
|
-
export declare const _DYN_DISABLE_FLUSH_ON_UNL8 = "disableFlushOnUnload";
|
|
2
|
+
export declare const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled";
|
|
3
|
+
export declare const _DYN__ADD_HOOK = "_addHook";
|
|
13
4
|
export declare const _DYN_CORE = "core";
|
|
14
5
|
export declare const _DYN_DATA_TYPE = "dataType";
|
|
15
6
|
export declare const _DYN_ENVELOPE_TYPE = "envelopeType";
|
|
16
7
|
export declare const _DYN_DIAG_LOG = "diagLog";
|
|
17
8
|
export declare const _DYN_TRACK = "track";
|
|
18
9
|
export declare const _DYN_TRACK_PAGE_VIEW = "trackPageView";
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
10
|
+
export declare const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit";
|
|
11
|
+
export declare const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal";
|
|
12
|
+
export declare const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal";
|
|
13
|
+
export declare const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent";
|
|
23
14
|
export declare const _DYN_HREF = "href";
|
|
24
|
-
export declare const
|
|
15
|
+
export declare const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal";
|
|
25
16
|
export declare const _DYN_EXCEPTION = "exception";
|
|
26
17
|
export declare const _DYN_ERROR = "error";
|
|
27
18
|
export declare const _DYN__ONERROR = "_onerror";
|
|
@@ -29,19 +20,20 @@ export declare const _DYN_ERROR_SRC = "errorSrc";
|
|
|
29
20
|
export declare const _DYN_LINE_NUMBER = "lineNumber";
|
|
30
21
|
export declare const _DYN_COLUMN_NUMBER = "columnNumber";
|
|
31
22
|
export declare const _DYN_MESSAGE = "message";
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
23
|
+
export declare const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException";
|
|
24
|
+
export declare const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer";
|
|
34
25
|
export declare const _DYN_DURATION = "duration";
|
|
35
26
|
export declare const _DYN_LENGTH = "length";
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
27
|
+
export declare const _DYN_AUTO_UNHANDLED_PROMI8 = "autoUnhandledPromiseInstrumented";
|
|
28
|
+
export declare const _DYN_IS_PERFORMANCE_TIMIN9 = "isPerformanceTimingSupported";
|
|
29
|
+
export declare const _DYN_GET_PERFORMANCE_TIMI10 = "getPerformanceTiming";
|
|
38
30
|
export declare const _DYN_NAVIGATION_START = "navigationStart";
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const
|
|
31
|
+
export declare const _DYN_SHOULD_COLLECT_DURAT11 = "shouldCollectDuration";
|
|
32
|
+
export declare const _DYN_IS_PERFORMANCE_TIMIN12 = "isPerformanceTimingDataReady";
|
|
41
33
|
export declare const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType";
|
|
42
34
|
export declare const _DYN_RESPONSE_START = "responseStart";
|
|
43
35
|
export declare const _DYN_REQUEST_START = "requestStart";
|
|
44
36
|
export declare const _DYN_LOAD_EVENT_END = "loadEventEnd";
|
|
45
37
|
export declare const _DYN_RESPONSE_END = "responseEnd";
|
|
46
38
|
export declare const _DYN_CONNECT_END = "connectEnd";
|
|
47
|
-
export declare const
|
|
39
|
+
export declare const _DYN_PAGE_VISIT_START_TIM13 = "pageVisitStartTime";
|