@microsoft/applicationinsights-analytics-js 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-04
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 +143 -254
- 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 +90 -46
- package/dist/applicationinsights-analytics-js.d.ts +1 -1
- package/dist/applicationinsights-analytics-js.js +143 -254
- 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 +1 -1
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Timing.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +6 -6
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-analytics-js",
|
|
3
|
-
"version": "2.8.0-
|
|
3
|
+
"version": "2.8.0-nightly.2204-04",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-analytics-js.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-5LeFdCOsYMTaQEzAy9NTOZWLUYygutoQWToEQ/fuL9E= sha384-2HUbESlpcnvmoe/DklV6vZB2UcAXQEas6tcTUfqLL8KRkXFpbaI9BA+5DjcYDQQO sha512-styMClM6AsEhRxxZaVXSO+1IUjY8qnYZs4pJauNNj299MWylgwDUGzPUyh1DZSzx/+x69qyutUUv88b+dRC74A==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "5LeFdCOsYMTaQEzAy9NTOZWLUYygutoQWToEQ/fuL9E=",
|
|
11
|
+
"sha384": "2HUbESlpcnvmoe/DklV6vZB2UcAXQEas6tcTUfqLL8KRkXFpbaI9BA+5DjcYDQQO",
|
|
12
|
+
"sha512": "styMClM6AsEhRxxZaVXSO+1IUjY8qnYZs4pJauNNj299MWylgwDUGzPUyh1DZSzx/+x69qyutUUv88b+dRC74A=="
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"@min.js": {
|
|
16
16
|
"file": "applicationinsights-analytics-js.min.js",
|
|
17
17
|
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-
|
|
18
|
+
"integrity": "sha256-f9vcs0b+EAE7ATBCdeZy9Xn5R8DY2ScU30kG1w86WGg= sha384-WoeaCbNL9SvVpRMXcwZYXxG8Y892XJfk4tXZ6KbtVWJ7c0e+Gk5+D6MEqWClpsBT sha512-ahwaoYLOPeVUTt2Z7+n2zx/EFztOwH90rZuekUq8aWUO548CFFLtNgn+kr8I1VIxzZuZ8WUkm45bIiwnoxpy9w==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "f9vcs0b+EAE7ATBCdeZy9Xn5R8DY2ScU30kG1w86WGg=",
|
|
21
|
+
"sha384": "WoeaCbNL9SvVpRMXcwZYXxG8Y892XJfk4tXZ6KbtVWJ7c0e+Gk5+D6MEqWClpsBT",
|
|
22
|
+
"sha512": "ahwaoYLOPeVUTt2Z7+n2zx/EFztOwH90rZuekUq8aWUO548CFFLtNgn+kr8I1VIxzZuZ8WUkm45bIiwnoxpy9w=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 2.8.0-
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 2.8.0-nightly.2204-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
1188
|
var _objDefineProperty = ObjDefineProperty;
|
|
1189
|
-
var version = "2.8.0-
|
|
1189
|
+
var version = "2.8.0-nightly.2204-04";
|
|
1190
1190
|
var instanceName = "." + newId(6);
|
|
1191
1191
|
var _dataUid = 0;
|
|
1192
1192
|
function _createAccessor(target, prop, value) {
|
|
@@ -2785,57 +2785,23 @@
|
|
|
2785
2785
|
return result;
|
|
2786
2786
|
}
|
|
2787
2787
|
|
|
2788
|
-
var
|
|
2789
|
-
function EventData() {
|
|
2790
|
-
this.ver = 2;
|
|
2791
|
-
this.properties = {};
|
|
2792
|
-
this.measurements = {};
|
|
2793
|
-
}
|
|
2794
|
-
return EventData;
|
|
2795
|
-
}());
|
|
2796
|
-
|
|
2797
|
-
var Event$1 = /** @class */ (function (_super) {
|
|
2798
|
-
__extendsFn(Event, _super);
|
|
2788
|
+
var Event$1 = /** @class */ (function () {
|
|
2799
2789
|
function Event(logger, name, properties, measurements) {
|
|
2800
|
-
|
|
2801
|
-
_this.aiDataContract = {
|
|
2790
|
+
this.aiDataContract = {
|
|
2802
2791
|
ver: 1 ,
|
|
2803
2792
|
name: 1 ,
|
|
2804
2793
|
properties: 0 ,
|
|
2805
2794
|
measurements: 0
|
|
2806
2795
|
};
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2796
|
+
var _self = this;
|
|
2797
|
+
_self.ver = 2;
|
|
2798
|
+
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
2799
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
2800
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
2811
2801
|
}
|
|
2812
2802
|
Event.envelopeType = "Microsoft.ApplicationInsights.{0}.Event";
|
|
2813
2803
|
Event.dataType = "EventData";
|
|
2814
2804
|
return Event;
|
|
2815
|
-
}(EventData));
|
|
2816
|
-
|
|
2817
|
-
var StackFrame = /** @class */ (function () {
|
|
2818
|
-
function StackFrame() {
|
|
2819
|
-
}
|
|
2820
|
-
return StackFrame;
|
|
2821
|
-
}());
|
|
2822
|
-
|
|
2823
|
-
var ExceptionData = /** @class */ (function () {
|
|
2824
|
-
function ExceptionData() {
|
|
2825
|
-
this.ver = 2;
|
|
2826
|
-
this.exceptions = [];
|
|
2827
|
-
this.properties = {};
|
|
2828
|
-
this.measurements = {};
|
|
2829
|
-
}
|
|
2830
|
-
return ExceptionData;
|
|
2831
|
-
}());
|
|
2832
|
-
|
|
2833
|
-
var ExceptionDetails = /** @class */ (function () {
|
|
2834
|
-
function ExceptionDetails() {
|
|
2835
|
-
this.hasFullStack = true;
|
|
2836
|
-
this.parsedStack = [];
|
|
2837
|
-
}
|
|
2838
|
-
return ExceptionDetails;
|
|
2839
2805
|
}());
|
|
2840
2806
|
|
|
2841
2807
|
var NoMethod = "<no_method>";
|
|
@@ -3079,50 +3045,48 @@
|
|
|
3079
3045
|
}
|
|
3080
3046
|
return "" + (errorObj || "");
|
|
3081
3047
|
}
|
|
3082
|
-
var Exception = /** @class */ (function (
|
|
3083
|
-
__extendsFn(Exception, _super);
|
|
3048
|
+
var Exception = /** @class */ (function () {
|
|
3084
3049
|
function Exception(logger, exception, properties, measurements, severityLevel, id) {
|
|
3085
|
-
|
|
3086
|
-
_this.aiDataContract = {
|
|
3050
|
+
this.aiDataContract = {
|
|
3087
3051
|
ver: 1 ,
|
|
3088
3052
|
exceptions: 1 ,
|
|
3089
3053
|
severityLevel: 0 ,
|
|
3090
3054
|
properties: 0 ,
|
|
3091
3055
|
measurements: 0
|
|
3092
3056
|
};
|
|
3057
|
+
var _self = this;
|
|
3058
|
+
_self.ver = 2;
|
|
3093
3059
|
if (!_isExceptionInternal(exception)) {
|
|
3094
3060
|
if (!properties) {
|
|
3095
3061
|
properties = {};
|
|
3096
3062
|
}
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3063
|
+
_self.exceptions = [new _ExceptionDetails(logger, exception, properties)];
|
|
3064
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3065
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3100
3066
|
if (severityLevel) {
|
|
3101
|
-
|
|
3067
|
+
_self.severityLevel = severityLevel;
|
|
3102
3068
|
}
|
|
3103
3069
|
if (id) {
|
|
3104
|
-
|
|
3070
|
+
_self.id = id;
|
|
3105
3071
|
}
|
|
3106
3072
|
}
|
|
3107
3073
|
else {
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3074
|
+
_self.exceptions = exception.exceptions || [];
|
|
3075
|
+
_self.properties = exception.properties;
|
|
3076
|
+
_self.measurements = exception.measurements;
|
|
3111
3077
|
if (exception.severityLevel) {
|
|
3112
|
-
|
|
3078
|
+
_self.severityLevel = exception.severityLevel;
|
|
3113
3079
|
}
|
|
3114
3080
|
if (exception.id) {
|
|
3115
|
-
|
|
3081
|
+
_self.id = exception.id;
|
|
3116
3082
|
}
|
|
3117
3083
|
if (exception.problemGroup) {
|
|
3118
|
-
|
|
3084
|
+
_self.problemGroup = exception.problemGroup;
|
|
3119
3085
|
}
|
|
3120
|
-
_this.ver = 2;
|
|
3121
3086
|
if (!isNullOrUndefined(exception.isManual)) {
|
|
3122
|
-
|
|
3087
|
+
_self.isManual = exception.isManual;
|
|
3123
3088
|
}
|
|
3124
3089
|
}
|
|
3125
|
-
return _this;
|
|
3126
3090
|
}
|
|
3127
3091
|
Exception.CreateAutoException = function (message, url, lineNumber, columnNumber, error, evt, stack, errorSrc) {
|
|
3128
3092
|
var errorType = _getErrorType(error || evt || message);
|
|
@@ -3176,12 +3140,10 @@
|
|
|
3176
3140
|
Exception.dataType = "ExceptionData";
|
|
3177
3141
|
Exception.formatError = _formatErrorCode;
|
|
3178
3142
|
return Exception;
|
|
3179
|
-
}(
|
|
3180
|
-
var _ExceptionDetails = /** @class */ (function (
|
|
3181
|
-
__extendsFn(_ExceptionDetails, _super);
|
|
3143
|
+
}());
|
|
3144
|
+
var _ExceptionDetails = /** @class */ (function () {
|
|
3182
3145
|
function _ExceptionDetails(logger, exception, properties) {
|
|
3183
|
-
|
|
3184
|
-
_this.aiDataContract = {
|
|
3146
|
+
this.aiDataContract = {
|
|
3185
3147
|
id: 0 ,
|
|
3186
3148
|
outerId: 0 ,
|
|
3187
3149
|
typeName: 1 ,
|
|
@@ -3190,41 +3152,42 @@
|
|
|
3190
3152
|
stack: 0 ,
|
|
3191
3153
|
parsedStack: 2
|
|
3192
3154
|
};
|
|
3155
|
+
var _self = this;
|
|
3193
3156
|
if (!_isExceptionDetailsInternal(exception)) {
|
|
3194
3157
|
var error = exception;
|
|
3195
3158
|
var evt = error && error.evt;
|
|
3196
3159
|
if (!isError(error)) {
|
|
3197
3160
|
error = error[strError] || evt || error;
|
|
3198
3161
|
}
|
|
3199
|
-
|
|
3200
|
-
|
|
3162
|
+
_self.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
|
|
3163
|
+
_self.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _self.typeName)) || strNotSpecified;
|
|
3201
3164
|
var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3165
|
+
_self.parsedStack = _parseStack(stack);
|
|
3166
|
+
_self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
|
|
3167
|
+
_self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack.length > 0;
|
|
3205
3168
|
if (properties) {
|
|
3206
|
-
properties.typeName = properties.typeName ||
|
|
3169
|
+
properties.typeName = properties.typeName || _self.typeName;
|
|
3207
3170
|
}
|
|
3208
3171
|
}
|
|
3209
3172
|
else {
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3173
|
+
_self.typeName = exception.typeName;
|
|
3174
|
+
_self.message = exception.message;
|
|
3175
|
+
_self[strStack] = exception[strStack];
|
|
3176
|
+
_self.parsedStack = exception.parsedStack || [];
|
|
3177
|
+
_self.hasFullStack = exception.hasFullStack;
|
|
3215
3178
|
}
|
|
3216
|
-
return _this;
|
|
3217
3179
|
}
|
|
3218
3180
|
_ExceptionDetails.prototype.toInterface = function () {
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3181
|
+
var _self = this;
|
|
3182
|
+
var parsedStack = _self.parsedStack instanceof Array
|
|
3183
|
+
&& arrMap(_self.parsedStack, function (frame) { return frame.toInterface(); });
|
|
3221
3184
|
var exceptionDetailsInterface = {
|
|
3222
|
-
id:
|
|
3223
|
-
outerId:
|
|
3224
|
-
typeName:
|
|
3225
|
-
message:
|
|
3226
|
-
hasFullStack:
|
|
3227
|
-
stack:
|
|
3185
|
+
id: _self.id,
|
|
3186
|
+
outerId: _self.outerId,
|
|
3187
|
+
typeName: _self.typeName,
|
|
3188
|
+
message: _self.message,
|
|
3189
|
+
hasFullStack: _self.hasFullStack,
|
|
3190
|
+
stack: _self[strStack],
|
|
3228
3191
|
parsedStack: parsedStack || undefined
|
|
3229
3192
|
};
|
|
3230
3193
|
return exceptionDetailsInterface;
|
|
@@ -3237,94 +3200,68 @@
|
|
|
3237
3200
|
return exceptionDetails;
|
|
3238
3201
|
};
|
|
3239
3202
|
return _ExceptionDetails;
|
|
3240
|
-
}(
|
|
3241
|
-
var _StackFrame = /** @class */ (function (
|
|
3242
|
-
__extendsFn(_StackFrame, _super);
|
|
3203
|
+
}());
|
|
3204
|
+
var _StackFrame = /** @class */ (function () {
|
|
3243
3205
|
function _StackFrame(sourceFrame, level) {
|
|
3244
|
-
|
|
3245
|
-
_this.sizeInBytes = 0;
|
|
3246
|
-
_this.aiDataContract = {
|
|
3206
|
+
this.aiDataContract = {
|
|
3247
3207
|
level: 1 ,
|
|
3248
3208
|
method: 1 ,
|
|
3249
3209
|
assembly: 0 ,
|
|
3250
3210
|
fileName: 0 ,
|
|
3251
3211
|
line: 0
|
|
3252
3212
|
};
|
|
3213
|
+
var _self = this;
|
|
3214
|
+
_self.sizeInBytes = 0;
|
|
3253
3215
|
if (typeof sourceFrame === "string") {
|
|
3254
3216
|
var frame = sourceFrame;
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3217
|
+
_self.level = level;
|
|
3218
|
+
_self.method = NoMethod;
|
|
3219
|
+
_self.assembly = strTrim(frame);
|
|
3220
|
+
_self.fileName = "";
|
|
3221
|
+
_self.line = 0;
|
|
3260
3222
|
var matches = frame.match(_StackFrame.regex);
|
|
3261
3223
|
if (matches && matches.length >= 5) {
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3224
|
+
_self.method = strTrim(matches[2]) || _self.method;
|
|
3225
|
+
_self.fileName = strTrim(matches[4]);
|
|
3226
|
+
_self.line = parseInt(matches[5]) || 0;
|
|
3265
3227
|
}
|
|
3266
3228
|
}
|
|
3267
3229
|
else {
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
}
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
return _this;
|
|
3230
|
+
_self.level = sourceFrame.level;
|
|
3231
|
+
_self.method = sourceFrame.method;
|
|
3232
|
+
_self.assembly = sourceFrame.assembly;
|
|
3233
|
+
_self.fileName = sourceFrame.fileName;
|
|
3234
|
+
_self.line = sourceFrame.line;
|
|
3235
|
+
_self.sizeInBytes = 0;
|
|
3236
|
+
}
|
|
3237
|
+
_self.sizeInBytes += _self.method.length;
|
|
3238
|
+
_self.sizeInBytes += _self.fileName.length;
|
|
3239
|
+
_self.sizeInBytes += _self.assembly.length;
|
|
3240
|
+
_self.sizeInBytes += _StackFrame.baseSize;
|
|
3241
|
+
_self.sizeInBytes += _self.level.toString().length;
|
|
3242
|
+
_self.sizeInBytes += _self.line.toString().length;
|
|
3282
3243
|
}
|
|
3283
3244
|
_StackFrame.CreateFromInterface = function (frame) {
|
|
3284
3245
|
return new _StackFrame(frame, null );
|
|
3285
3246
|
};
|
|
3286
3247
|
_StackFrame.prototype.toInterface = function () {
|
|
3248
|
+
var _self = this;
|
|
3287
3249
|
return {
|
|
3288
|
-
level:
|
|
3289
|
-
method:
|
|
3290
|
-
assembly:
|
|
3291
|
-
fileName:
|
|
3292
|
-
line:
|
|
3250
|
+
level: _self.level,
|
|
3251
|
+
method: _self.method,
|
|
3252
|
+
assembly: _self.assembly,
|
|
3253
|
+
fileName: _self.fileName,
|
|
3254
|
+
line: _self.line
|
|
3293
3255
|
};
|
|
3294
3256
|
};
|
|
3295
3257
|
_StackFrame.regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
|
|
3296
3258
|
_StackFrame.baseSize = 58;
|
|
3297
3259
|
return _StackFrame;
|
|
3298
|
-
}(StackFrame));
|
|
3299
|
-
|
|
3300
|
-
var MetricData = /** @class */ (function () {
|
|
3301
|
-
function MetricData() {
|
|
3302
|
-
this.ver = 2;
|
|
3303
|
-
this.metrics = [];
|
|
3304
|
-
this.properties = {};
|
|
3305
|
-
this.measurements = {};
|
|
3306
|
-
}
|
|
3307
|
-
return MetricData;
|
|
3308
|
-
}());
|
|
3309
|
-
|
|
3310
|
-
var DataPointType;
|
|
3311
|
-
(function (DataPointType) {
|
|
3312
|
-
DataPointType[DataPointType["Measurement"] = 0] = "Measurement";
|
|
3313
|
-
DataPointType[DataPointType["Aggregation"] = 1] = "Aggregation";
|
|
3314
|
-
})(DataPointType || (DataPointType = {}));
|
|
3315
|
-
|
|
3316
|
-
var DataPoint$1 = /** @class */ (function () {
|
|
3317
|
-
function DataPoint() {
|
|
3318
|
-
this.kind = DataPointType.Measurement;
|
|
3319
|
-
}
|
|
3320
|
-
return DataPoint;
|
|
3321
3260
|
}());
|
|
3322
3261
|
|
|
3323
|
-
var DataPoint = /** @class */ (function (
|
|
3324
|
-
__extendsFn(DataPoint, _super);
|
|
3262
|
+
var DataPoint = /** @class */ (function () {
|
|
3325
3263
|
function DataPoint() {
|
|
3326
|
-
|
|
3327
|
-
_this.aiDataContract = {
|
|
3264
|
+
this.aiDataContract = {
|
|
3328
3265
|
name: 1 ,
|
|
3329
3266
|
kind: 0 ,
|
|
3330
3267
|
value: 1 ,
|
|
@@ -3333,20 +3270,20 @@
|
|
|
3333
3270
|
max: 0 ,
|
|
3334
3271
|
stdDev: 0
|
|
3335
3272
|
};
|
|
3336
|
-
|
|
3273
|
+
this.kind = 0 ;
|
|
3337
3274
|
}
|
|
3338
3275
|
return DataPoint;
|
|
3339
|
-
}(
|
|
3276
|
+
}());
|
|
3340
3277
|
|
|
3341
|
-
var Metric = /** @class */ (function (
|
|
3342
|
-
__extendsFn(Metric, _super);
|
|
3278
|
+
var Metric = /** @class */ (function () {
|
|
3343
3279
|
function Metric(logger, name, value, count, min, max, stdDev, properties, measurements) {
|
|
3344
|
-
|
|
3345
|
-
_this.aiDataContract = {
|
|
3280
|
+
this.aiDataContract = {
|
|
3346
3281
|
ver: 1 ,
|
|
3347
3282
|
metrics: 1 ,
|
|
3348
3283
|
properties: 0
|
|
3349
3284
|
};
|
|
3285
|
+
var _self = this;
|
|
3286
|
+
_self.ver = 2;
|
|
3350
3287
|
var dataPoint = new DataPoint();
|
|
3351
3288
|
dataPoint.count = count > 0 ? count : undefined;
|
|
3352
3289
|
dataPoint.max = isNaN(max) || max === null ? undefined : max;
|
|
@@ -3354,33 +3291,18 @@
|
|
|
3354
3291
|
dataPoint.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
3355
3292
|
dataPoint.value = value;
|
|
3356
3293
|
dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
return _this;
|
|
3294
|
+
_self.metrics = [dataPoint];
|
|
3295
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3296
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3361
3297
|
}
|
|
3362
3298
|
Metric.envelopeType = "Microsoft.ApplicationInsights.{0}.Metric";
|
|
3363
3299
|
Metric.dataType = "MetricData";
|
|
3364
3300
|
return Metric;
|
|
3365
|
-
}(
|
|
3366
|
-
|
|
3367
|
-
var PageViewData = /** @class */ (function (_super) {
|
|
3368
|
-
__extendsFn(PageViewData, _super);
|
|
3369
|
-
function PageViewData() {
|
|
3370
|
-
var _this = _super.call(this) || this;
|
|
3371
|
-
_this.ver = 2;
|
|
3372
|
-
_this.properties = {};
|
|
3373
|
-
_this.measurements = {};
|
|
3374
|
-
return _this;
|
|
3375
|
-
}
|
|
3376
|
-
return PageViewData;
|
|
3377
|
-
}(EventData));
|
|
3301
|
+
}());
|
|
3378
3302
|
|
|
3379
|
-
var PageView = /** @class */ (function (
|
|
3380
|
-
__extendsFn(PageView, _super);
|
|
3303
|
+
var PageView = /** @class */ (function () {
|
|
3381
3304
|
function PageView(logger, name, url, durationMs, properties, measurements, id) {
|
|
3382
|
-
|
|
3383
|
-
_this.aiDataContract = {
|
|
3305
|
+
this.aiDataContract = {
|
|
3384
3306
|
ver: 1 ,
|
|
3385
3307
|
name: 0 ,
|
|
3386
3308
|
url: 0 ,
|
|
@@ -3389,37 +3311,26 @@
|
|
|
3389
3311
|
measurements: 0 ,
|
|
3390
3312
|
id: 0
|
|
3391
3313
|
};
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3314
|
+
var _self = this;
|
|
3315
|
+
_self.ver = 2;
|
|
3316
|
+
_self.id = dataSanitizeId(logger, id);
|
|
3317
|
+
_self.url = dataSanitizeUrl(logger, url);
|
|
3318
|
+
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
3395
3319
|
if (!isNaN(durationMs)) {
|
|
3396
|
-
|
|
3320
|
+
_self.duration = msToTimeSpan(durationMs);
|
|
3397
3321
|
}
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
return _this;
|
|
3322
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3323
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3401
3324
|
}
|
|
3402
3325
|
PageView.envelopeType = "Microsoft.ApplicationInsights.{0}.Pageview";
|
|
3403
3326
|
PageView.dataType = "PageviewData";
|
|
3404
3327
|
return PageView;
|
|
3405
|
-
}(PageViewData));
|
|
3406
|
-
|
|
3407
|
-
var RemoteDependencyData$1 = /** @class */ (function () {
|
|
3408
|
-
function RemoteDependencyData() {
|
|
3409
|
-
this.ver = 2;
|
|
3410
|
-
this.success = true;
|
|
3411
|
-
this.properties = {};
|
|
3412
|
-
this.measurements = {};
|
|
3413
|
-
}
|
|
3414
|
-
return RemoteDependencyData;
|
|
3415
3328
|
}());
|
|
3416
3329
|
|
|
3417
|
-
var RemoteDependencyData = /** @class */ (function (
|
|
3418
|
-
__extendsFn(RemoteDependencyData, _super);
|
|
3330
|
+
var RemoteDependencyData = /** @class */ (function () {
|
|
3419
3331
|
function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {
|
|
3420
3332
|
if (requestAPI === void 0) { requestAPI = "Ajax"; }
|
|
3421
|
-
|
|
3422
|
-
_this.aiDataContract = {
|
|
3333
|
+
this.aiDataContract = {
|
|
3423
3334
|
id: 1 ,
|
|
3424
3335
|
ver: 1 ,
|
|
3425
3336
|
name: 0 ,
|
|
@@ -3442,77 +3353,54 @@
|
|
|
3442
3353
|
commandName: 0 ,
|
|
3443
3354
|
dependencyTypeName: 0
|
|
3444
3355
|
};
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3356
|
+
var _self = this;
|
|
3357
|
+
_self.ver = 2;
|
|
3358
|
+
_self.id = id;
|
|
3359
|
+
_self.duration = msToTimeSpan(value);
|
|
3360
|
+
_self.success = success;
|
|
3361
|
+
_self.resultCode = resultCode + "";
|
|
3362
|
+
_self.type = dataSanitizeString(logger, requestAPI);
|
|
3450
3363
|
var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
|
|
3451
|
-
|
|
3452
|
-
|
|
3364
|
+
_self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
|
|
3365
|
+
_self.target = dataSanitizeString(logger, dependencyFields.target);
|
|
3453
3366
|
if (correlationContext) {
|
|
3454
|
-
|
|
3367
|
+
_self.target = "".concat(_self.target, " | ").concat(correlationContext);
|
|
3455
3368
|
}
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
return _this;
|
|
3369
|
+
_self.name = dataSanitizeString(logger, dependencyFields.name);
|
|
3370
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3371
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3460
3372
|
}
|
|
3461
3373
|
RemoteDependencyData.envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
|
|
3462
3374
|
RemoteDependencyData.dataType = "RemoteDependencyData";
|
|
3463
3375
|
return RemoteDependencyData;
|
|
3464
|
-
}(RemoteDependencyData$1));
|
|
3465
|
-
|
|
3466
|
-
var MessageData = /** @class */ (function () {
|
|
3467
|
-
function MessageData() {
|
|
3468
|
-
this.ver = 2;
|
|
3469
|
-
this.properties = {};
|
|
3470
|
-
this.measurements = {};
|
|
3471
|
-
}
|
|
3472
|
-
return MessageData;
|
|
3473
3376
|
}());
|
|
3474
3377
|
|
|
3475
|
-
var Trace = /** @class */ (function (
|
|
3476
|
-
__extendsFn(Trace, _super);
|
|
3378
|
+
var Trace = /** @class */ (function () {
|
|
3477
3379
|
function Trace(logger, message, severityLevel, properties, measurements) {
|
|
3478
|
-
|
|
3479
|
-
_this.aiDataContract = {
|
|
3380
|
+
this.aiDataContract = {
|
|
3480
3381
|
ver: 1 ,
|
|
3481
3382
|
message: 1 ,
|
|
3482
3383
|
severityLevel: 0 ,
|
|
3483
3384
|
properties: 0
|
|
3484
3385
|
};
|
|
3386
|
+
var _self = this;
|
|
3387
|
+
_self.ver = 2;
|
|
3485
3388
|
message = message || strNotSpecified;
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3389
|
+
_self.message = dataSanitizeMessage(logger, message);
|
|
3390
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3391
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3489
3392
|
if (severityLevel) {
|
|
3490
|
-
|
|
3393
|
+
_self.severityLevel = severityLevel;
|
|
3491
3394
|
}
|
|
3492
|
-
return _this;
|
|
3493
3395
|
}
|
|
3494
3396
|
Trace.envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
|
|
3495
3397
|
Trace.dataType = "MessageData";
|
|
3496
3398
|
return Trace;
|
|
3497
|
-
}(
|
|
3498
|
-
|
|
3499
|
-
var PageViewPerfData = /** @class */ (function (_super) {
|
|
3500
|
-
__extendsFn(PageViewPerfData, _super);
|
|
3501
|
-
function PageViewPerfData() {
|
|
3502
|
-
var _this = _super.call(this) || this;
|
|
3503
|
-
_this.ver = 2;
|
|
3504
|
-
_this.properties = {};
|
|
3505
|
-
_this.measurements = {};
|
|
3506
|
-
return _this;
|
|
3507
|
-
}
|
|
3508
|
-
return PageViewPerfData;
|
|
3509
|
-
}(PageViewData));
|
|
3399
|
+
}());
|
|
3510
3400
|
|
|
3511
|
-
var PageViewPerformance = /** @class */ (function (
|
|
3512
|
-
__extendsFn(PageViewPerformance, _super);
|
|
3401
|
+
var PageViewPerformance = /** @class */ (function () {
|
|
3513
3402
|
function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {
|
|
3514
|
-
|
|
3515
|
-
_this.aiDataContract = {
|
|
3403
|
+
this.aiDataContract = {
|
|
3516
3404
|
ver: 1 ,
|
|
3517
3405
|
name: 0 ,
|
|
3518
3406
|
url: 0 ,
|
|
@@ -3525,24 +3413,25 @@
|
|
|
3525
3413
|
properties: 0 ,
|
|
3526
3414
|
measurements: 0
|
|
3527
3415
|
};
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3416
|
+
var _self = this;
|
|
3417
|
+
_self.ver = 2;
|
|
3418
|
+
_self.url = dataSanitizeUrl(logger, url);
|
|
3419
|
+
_self.name = dataSanitizeString(logger, name) || strNotSpecified;
|
|
3420
|
+
_self.properties = dataSanitizeProperties(logger, properties);
|
|
3421
|
+
_self.measurements = dataSanitizeMeasurements(logger, measurements);
|
|
3532
3422
|
if (cs4BaseData) {
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3423
|
+
_self.domProcessing = cs4BaseData.domProcessing;
|
|
3424
|
+
_self.duration = cs4BaseData.duration;
|
|
3425
|
+
_self.networkConnect = cs4BaseData.networkConnect;
|
|
3426
|
+
_self.perfTotal = cs4BaseData.perfTotal;
|
|
3427
|
+
_self.receivedResponse = cs4BaseData.receivedResponse;
|
|
3428
|
+
_self.sentRequest = cs4BaseData.sentRequest;
|
|
3539
3429
|
}
|
|
3540
|
-
return _this;
|
|
3541
3430
|
}
|
|
3542
3431
|
PageViewPerformance.envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
|
|
3543
3432
|
PageViewPerformance.dataType = "PageviewPerformanceData";
|
|
3544
3433
|
return PageViewPerformance;
|
|
3545
|
-
}(
|
|
3434
|
+
}());
|
|
3546
3435
|
|
|
3547
3436
|
var SeverityLevel;
|
|
3548
3437
|
(function (SeverityLevel) {
|
|
@@ -4449,7 +4338,7 @@
|
|
|
4449
4338
|
});
|
|
4450
4339
|
return _this;
|
|
4451
4340
|
}
|
|
4452
|
-
AnalyticsPlugin.Version = "2.8.0-
|
|
4341
|
+
AnalyticsPlugin.Version = "2.8.0-nightly.2204-04";
|
|
4453
4342
|
AnalyticsPlugin.getDefaultConfig = _getDefaultConfig;
|
|
4454
4343
|
return AnalyticsPlugin;
|
|
4455
4344
|
}(BaseTelemetryPlugin));
|