@microsoft/applicationinsights-analytics-js 3.0.0-beta.2210-01 → 3.0.0-beta.2210-03
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 +5 -43
- 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
|
@@ -307,10 +307,6 @@
|
|
|
307
307
|
"text": "ITelemetryInitializerHandler",
|
|
308
308
|
"canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryInitializerHandler:interface"
|
|
309
309
|
},
|
|
310
|
-
{
|
|
311
|
-
"kind": "Content",
|
|
312
|
-
"text": " | void"
|
|
313
|
-
},
|
|
314
310
|
{
|
|
315
311
|
"kind": "Content",
|
|
316
312
|
"text": ";"
|
|
@@ -319,7 +315,7 @@
|
|
|
319
315
|
"isStatic": false,
|
|
320
316
|
"returnTypeTokenRange": {
|
|
321
317
|
"startIndex": 5,
|
|
322
|
-
"endIndex":
|
|
318
|
+
"endIndex": 6
|
|
323
319
|
},
|
|
324
320
|
"releaseTag": "Public",
|
|
325
321
|
"isProtected": false,
|
|
@@ -373,7 +369,7 @@
|
|
|
373
369
|
"excerptTokens": [
|
|
374
370
|
{
|
|
375
371
|
"kind": "Content",
|
|
376
|
-
"text": "config: "
|
|
372
|
+
"text": "readonly config: "
|
|
377
373
|
},
|
|
378
374
|
{
|
|
379
375
|
"kind": "Reference",
|
|
@@ -385,7 +381,7 @@
|
|
|
385
381
|
"text": ";"
|
|
386
382
|
}
|
|
387
383
|
],
|
|
388
|
-
"isReadonly":
|
|
384
|
+
"isReadonly": true,
|
|
389
385
|
"isOptional": false,
|
|
390
386
|
"releaseTag": "Public",
|
|
391
387
|
"name": "config",
|
|
@@ -427,40 +423,6 @@
|
|
|
427
423
|
"isOptional": false,
|
|
428
424
|
"name": "getCookieMgr"
|
|
429
425
|
},
|
|
430
|
-
{
|
|
431
|
-
"kind": "Property",
|
|
432
|
-
"canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin.getDefaultConfig:member",
|
|
433
|
-
"docComment": "",
|
|
434
|
-
"excerptTokens": [
|
|
435
|
-
{
|
|
436
|
-
"kind": "Content",
|
|
437
|
-
"text": "static getDefaultConfig: "
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"kind": "Content",
|
|
441
|
-
"text": "typeof "
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"kind": "Reference",
|
|
445
|
-
"text": "_getDefaultConfig",
|
|
446
|
-
"canonicalReference": "@microsoft/applicationinsights-analytics-js!~_getDefaultConfig:function"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"kind": "Content",
|
|
450
|
-
"text": ";"
|
|
451
|
-
}
|
|
452
|
-
],
|
|
453
|
-
"isReadonly": false,
|
|
454
|
-
"isOptional": false,
|
|
455
|
-
"releaseTag": "Public",
|
|
456
|
-
"name": "getDefaultConfig",
|
|
457
|
-
"propertyTypeTokenRange": {
|
|
458
|
-
"startIndex": 1,
|
|
459
|
-
"endIndex": 3
|
|
460
|
-
},
|
|
461
|
-
"isStatic": true,
|
|
462
|
-
"isProtected": false
|
|
463
|
-
},
|
|
464
426
|
{
|
|
465
427
|
"kind": "Property",
|
|
466
428
|
"canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#identifier:member",
|
|
@@ -1306,7 +1268,7 @@
|
|
|
1306
1268
|
{
|
|
1307
1269
|
"kind": "Method",
|
|
1308
1270
|
"canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackException:member(1)",
|
|
1309
|
-
"docComment": "/**\n * Log an exception you have caught.\n *\n * @param exception - Object which contains exception to be sent\n *\n * @param customProperties
|
|
1271
|
+
"docComment": "/**\n * Log an exception you have caught.\n *\n * @param exception - Object which contains exception to be sent\n *\n * @param - } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.\n *\n * Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric. @memberof ApplicationInsights\n */\n",
|
|
1310
1272
|
"excerptTokens": [
|
|
1311
1273
|
{
|
|
1312
1274
|
"kind": "Content",
|
|
@@ -1371,7 +1333,7 @@
|
|
|
1371
1333
|
{
|
|
1372
1334
|
"kind": "Method",
|
|
1373
1335
|
"canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackMetric:member(1)",
|
|
1374
|
-
"docComment": "/**\n * @description Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. To send single measurement, just use the name and average fields of {@link IMetricTelemetry}. If you take measurements frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements and sending the resulting average at intervals\n *\n * @param metric - input object argument. Only name and average are mandatory.\n *\n * @param customProperties
|
|
1336
|
+
"docComment": "/**\n * @description Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. To send single measurement, just use the name and average fields of {@link IMetricTelemetry}. If you take measurements frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements and sending the resulting average at intervals\n *\n * @param metric - input object argument. Only name and average are mandatory.\n *\n * @param - } customProperties additional data used to filter metrics in the portal. Defaults to empty. @memberof ApplicationInsights\n */\n",
|
|
1375
1337
|
"excerptTokens": [
|
|
1376
1338
|
{
|
|
1377
1339
|
"kind": "Content",
|
|
@@ -30,16 +30,12 @@ import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
|
30
30
|
class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
31
31
|
constructor();
|
|
32
32
|
// (undocumented)
|
|
33
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler
|
|
33
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
34
34
|
// (undocumented)
|
|
35
35
|
autoRoutePVDelay: number;
|
|
36
36
|
// (undocumented)
|
|
37
|
-
config: IConfig;
|
|
37
|
+
readonly config: IConfig;
|
|
38
38
|
getCookieMgr(): ICookieMgr;
|
|
39
|
-
// Warning: (ae-forgotten-export) The symbol "_getDefaultConfig" needs to be exported by the entry point applicationinsights-analytics-js.d.ts
|
|
40
|
-
//
|
|
41
|
-
// (undocumented)
|
|
42
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
43
39
|
// (undocumented)
|
|
44
40
|
identifier: string;
|
|
45
41
|
// (undocumented)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.0.0-beta.2210-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.0.0-beta.2210-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -31,10 +31,9 @@ declare namespace ApplicationInsights {
|
|
|
31
31
|
|
|
32
32
|
class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
33
33
|
static Version: string;
|
|
34
|
-
static getDefaultConfig: typeof _getDefaultConfig;
|
|
35
34
|
identifier: string;
|
|
36
35
|
priority: number;
|
|
37
|
-
config: IConfig;
|
|
36
|
+
readonly config: IConfig;
|
|
38
37
|
queue: Array<() => void>;
|
|
39
38
|
autoRoutePVDelay: number;
|
|
40
39
|
constructor();
|
|
@@ -62,7 +61,7 @@ declare namespace ApplicationInsights {
|
|
|
62
61
|
}): void;
|
|
63
62
|
/**
|
|
64
63
|
* @description Log a diagnostic message
|
|
65
|
-
* @param
|
|
64
|
+
* @param trace
|
|
66
65
|
* @param ICustomProperties.
|
|
67
66
|
* @memberof ApplicationInsights
|
|
68
67
|
*/
|
|
@@ -73,24 +72,24 @@ declare namespace ApplicationInsights {
|
|
|
73
72
|
* use the name and average fields of {@link IMetricTelemetry}. If you take measurements
|
|
74
73
|
* frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
|
|
75
74
|
* and sending the resulting average at intervals
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
75
|
+
* @param metric - input object argument. Only name and average are mandatory.
|
|
76
|
+
* @param } customProperties additional data used to filter metrics in the
|
|
78
77
|
* portal. Defaults to empty.
|
|
79
78
|
* @memberof ApplicationInsights
|
|
80
79
|
*/
|
|
81
80
|
trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
82
81
|
/**
|
|
83
82
|
* Logs that a page or other item was viewed.
|
|
84
|
-
* @param IPageViewTelemetry The string you used as the name in startTrackPage. Defaults to the document title.
|
|
85
|
-
* @param customProperties Additional data used to filter events and metrics. Defaults to empty.
|
|
83
|
+
* @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
84
|
+
* @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
|
|
86
85
|
* If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
|
|
87
86
|
*/
|
|
88
87
|
trackPageView(pageView?: IPageViewTelemetry, customProperties?: ICustomProperties): void;
|
|
89
88
|
/**
|
|
90
89
|
* Create a page view telemetry item and send it to the SDK pipeline through the core.track API
|
|
91
|
-
* @param pageView Page view item to be sent
|
|
92
|
-
* @param properties Custom properties (Part C) that a user can add to the telemetry item
|
|
93
|
-
* @param systemProperties System level properties (Part A) that a user can add to the telemetry item
|
|
90
|
+
* @param pageView - Page view item to be sent
|
|
91
|
+
* @param properties - Custom properties (Part C) that a user can add to the telemetry item
|
|
92
|
+
* @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
|
|
94
93
|
*/
|
|
95
94
|
sendPageViewInternal(pageView: IPageViewTelemetryInternal, properties?: {
|
|
96
95
|
[key: string]: any;
|
|
@@ -117,7 +116,7 @@ declare namespace ApplicationInsights {
|
|
|
117
116
|
* 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,
|
|
118
117
|
* 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
|
|
119
118
|
* and send the event.
|
|
120
|
-
* @param name A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
119
|
+
* @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
121
120
|
*/
|
|
122
121
|
startTrackPage(name?: string): void;
|
|
123
122
|
/**
|
|
@@ -147,8 +146,8 @@ declare namespace ApplicationInsights {
|
|
|
147
146
|
/**
|
|
148
147
|
* Log an exception you have caught.
|
|
149
148
|
*
|
|
150
|
-
* @param
|
|
151
|
-
* @param
|
|
149
|
+
* @param exception - Object which contains exception to be sent
|
|
150
|
+
* @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
152
151
|
*
|
|
153
152
|
* Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
|
|
154
153
|
* @memberof ApplicationInsights
|
|
@@ -156,18 +155,16 @@ declare namespace ApplicationInsights {
|
|
|
156
155
|
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
157
156
|
/**
|
|
158
157
|
* @description Custom error handler for Application Insights Analytics
|
|
159
|
-
* @param
|
|
158
|
+
* @param exception
|
|
160
159
|
* @memberof ApplicationInsights
|
|
161
160
|
*/
|
|
162
161
|
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
163
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler
|
|
162
|
+
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
164
163
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
165
164
|
}
|
|
166
165
|
export { AnalyticsPlugin }
|
|
167
166
|
export { AnalyticsPlugin as ApplicationInsights }
|
|
168
167
|
|
|
169
|
-
function _getDefaultConfig(config?: IConfig): IConfig;
|
|
170
|
-
|
|
171
168
|
/**
|
|
172
169
|
* Internal interface to pass appInsights object to subcomponents without coupling
|
|
173
170
|
*/
|