@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.0.0-beta.
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.0.0-beta.2210-02
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -37,10 +37,9 @@ import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
|
37
37
|
|
|
38
38
|
declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
39
39
|
static Version: string;
|
|
40
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
41
40
|
identifier: string;
|
|
42
41
|
priority: number;
|
|
43
|
-
config: IConfig;
|
|
42
|
+
readonly config: IConfig;
|
|
44
43
|
queue: Array<() => void>;
|
|
45
44
|
autoRoutePVDelay: number;
|
|
46
45
|
constructor();
|
|
@@ -68,7 +67,7 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
68
67
|
}): void;
|
|
69
68
|
/**
|
|
70
69
|
* @description Log a diagnostic message
|
|
71
|
-
* @param
|
|
70
|
+
* @param trace
|
|
72
71
|
* @param ICustomProperties.
|
|
73
72
|
* @memberof ApplicationInsights
|
|
74
73
|
*/
|
|
@@ -79,24 +78,24 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
79
78
|
* use the name and average fields of {@link IMetricTelemetry}. If you take measurements
|
|
80
79
|
* frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
|
|
81
80
|
* and sending the resulting average at intervals
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
81
|
+
* @param metric - input object argument. Only name and average are mandatory.
|
|
82
|
+
* @param } customProperties additional data used to filter metrics in the
|
|
84
83
|
* portal. Defaults to empty.
|
|
85
84
|
* @memberof ApplicationInsights
|
|
86
85
|
*/
|
|
87
86
|
trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
88
87
|
/**
|
|
89
88
|
* Logs that a page or other item was viewed.
|
|
90
|
-
* @param IPageViewTelemetry The string you used as the name in startTrackPage. Defaults to the document title.
|
|
91
|
-
* @param customProperties Additional data used to filter events and metrics. Defaults to empty.
|
|
89
|
+
* @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
90
|
+
* @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
|
|
92
91
|
* If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
|
|
93
92
|
*/
|
|
94
93
|
trackPageView(pageView?: IPageViewTelemetry, customProperties?: ICustomProperties): void;
|
|
95
94
|
/**
|
|
96
95
|
* Create a page view telemetry item and send it to the SDK pipeline through the core.track API
|
|
97
|
-
* @param pageView Page view item to be sent
|
|
98
|
-
* @param properties Custom properties (Part C) that a user can add to the telemetry item
|
|
99
|
-
* @param systemProperties System level properties (Part A) that a user can add to the telemetry item
|
|
96
|
+
* @param pageView - Page view item to be sent
|
|
97
|
+
* @param properties - Custom properties (Part C) that a user can add to the telemetry item
|
|
98
|
+
* @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
|
|
100
99
|
*/
|
|
101
100
|
sendPageViewInternal(pageView: IPageViewTelemetryInternal, properties?: {
|
|
102
101
|
[key: string]: any;
|
|
@@ -123,7 +122,7 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
123
122
|
* 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,
|
|
124
123
|
* 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
|
|
125
124
|
* and send the event.
|
|
126
|
-
* @param name A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
125
|
+
* @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
127
126
|
*/
|
|
128
127
|
startTrackPage(name?: string): void;
|
|
129
128
|
/**
|
|
@@ -153,8 +152,8 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
153
152
|
/**
|
|
154
153
|
* Log an exception you have caught.
|
|
155
154
|
*
|
|
156
|
-
* @param
|
|
157
|
-
* @param
|
|
155
|
+
* @param exception - Object which contains exception to be sent
|
|
156
|
+
* @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
158
157
|
*
|
|
159
158
|
* Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
|
|
160
159
|
* @memberof ApplicationInsights
|
|
@@ -162,18 +161,16 @@ declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsight
|
|
|
162
161
|
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
163
162
|
/**
|
|
164
163
|
* @description Custom error handler for Application Insights Analytics
|
|
165
|
-
* @param
|
|
164
|
+
* @param exception
|
|
166
165
|
* @memberof ApplicationInsights
|
|
167
166
|
*/
|
|
168
167
|
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
169
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler
|
|
168
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
170
169
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
171
170
|
}
|
|
172
171
|
export { AnalyticsPlugin }
|
|
173
172
|
export { AnalyticsPlugin as ApplicationInsights }
|
|
174
173
|
|
|
175
|
-
declare function _getDefaultConfig(config?: IConfig): IConfig;
|
|
176
|
-
|
|
177
174
|
/**
|
|
178
175
|
* Internal interface to pass appInsights object to subcomponents without coupling
|
|
179
176
|
*/
|