@azure/monitor-opentelemetry-exporter 1.0.0-beta.17 → 1.0.0-beta.19
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/README.md +36 -12
- package/dist/index.js +352 -335
- package/dist-esm/src/export/log.js.map +1 -1
- package/dist-esm/src/export/metric.js.map +1 -1
- package/dist-esm/src/export/statsbeat/longIntervalStatsbeatMetrics.js +1 -1
- package/dist-esm/src/export/statsbeat/longIntervalStatsbeatMetrics.js.map +1 -1
- package/dist-esm/src/export/statsbeat/networkStatsbeatMetrics.js +1 -1
- package/dist-esm/src/export/statsbeat/networkStatsbeatMetrics.js.map +1 -1
- package/dist-esm/src/export/statsbeat/statsbeatExporter.js +1 -2
- package/dist-esm/src/export/statsbeat/statsbeatExporter.js.map +1 -1
- package/dist-esm/src/export/statsbeat/statsbeatMetrics.js +13 -1
- package/dist-esm/src/export/statsbeat/statsbeatMetrics.js.map +1 -1
- package/dist-esm/src/export/statsbeat/types.js +3 -2
- package/dist-esm/src/export/statsbeat/types.js.map +1 -1
- package/dist-esm/src/export/trace.js.map +1 -1
- package/dist-esm/src/generated/applicationInsightsClient.js +13 -30
- package/dist-esm/src/generated/applicationInsightsClient.js.map +1 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +276 -276
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +14 -14
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/platform/nodejs/baseSender.js +20 -6
- package/dist-esm/src/platform/nodejs/baseSender.js.map +1 -1
- package/dist-esm/src/platform/nodejs/context/context.js +1 -2
- package/dist-esm/src/platform/nodejs/context/context.js.map +1 -1
- package/dist-esm/src/platform/nodejs/persist/fileAccessControl.js +1 -2
- package/dist-esm/src/platform/nodejs/persist/fileAccessControl.js.map +1 -1
- package/dist-esm/src/platform/nodejs/persist/fileSystemPersist.js +1 -2
- package/dist-esm/src/platform/nodejs/persist/fileSystemPersist.js.map +1 -1
- package/dist-esm/src/sampling.js.map +1 -1
- package/dist-esm/src/utils/common.js.map +1 -1
- package/dist-esm/src/utils/connectionStringParser.js +1 -2
- package/dist-esm/src/utils/connectionStringParser.js.map +1 -1
- package/dist-esm/src/utils/constants/applicationinsights.js +2 -1
- package/dist-esm/src/utils/constants/applicationinsights.js.map +1 -1
- package/dist-esm/src/utils/eventhub.js.map +1 -1
- package/dist-esm/src/utils/metricUtils.js.map +1 -1
- package/dist-esm/src/utils/spanUtils.js +6 -1
- package/dist-esm/src/utils/spanUtils.js.map +1 -1
- package/package.json +22 -23
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var sdkTraceBase = require('@opentelemetry/sdk-trace-base');
|
|
4
6
|
var api = require('@opentelemetry/api');
|
|
5
7
|
var core = require('@opentelemetry/core');
|
|
@@ -32,7 +34,6 @@ function _interopNamespaceDefault(e) {
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
var os__namespace = /*#__PURE__*/_interopNamespaceDefault(os$1);
|
|
35
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
36
37
|
var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
|
|
37
38
|
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
38
39
|
var child_process__namespace = /*#__PURE__*/_interopNamespaceDefault(child_process);
|
|
@@ -59,7 +60,7 @@ const TIME_SINCE_ENQUEUED = "timeSinceEnqueued";
|
|
|
59
60
|
* AzureMonitorTraceExporter version.
|
|
60
61
|
* @internal
|
|
61
62
|
*/
|
|
62
|
-
const packageVersion = "1.0.0-beta.
|
|
63
|
+
const packageVersion = "1.0.0-beta.19";
|
|
63
64
|
var DependencyTypes;
|
|
64
65
|
(function (DependencyTypes) {
|
|
65
66
|
DependencyTypes["InProc"] = "InProc";
|
|
@@ -67,6 +68,7 @@ var DependencyTypes;
|
|
|
67
68
|
DependencyTypes["Sql"] = "SQL";
|
|
68
69
|
DependencyTypes["Http"] = "Http";
|
|
69
70
|
DependencyTypes["Grpc"] = "GRPC";
|
|
71
|
+
DependencyTypes["Wcf"] = "WCF Service";
|
|
70
72
|
})(DependencyTypes || (DependencyTypes = {}));
|
|
71
73
|
const AzureMonitorSampleRate = "_MS.sampleRate";
|
|
72
74
|
const ApplicationInsightsBaseType = "_MS.baseType";
|
|
@@ -876,9 +878,9 @@ const contentType = {
|
|
|
876
878
|
isConstant: true,
|
|
877
879
|
serializedName: "Content-Type",
|
|
878
880
|
type: {
|
|
879
|
-
name: "String"
|
|
880
|
-
}
|
|
881
|
-
}
|
|
881
|
+
name: "String",
|
|
882
|
+
},
|
|
883
|
+
},
|
|
882
884
|
};
|
|
883
885
|
const body = {
|
|
884
886
|
parameterPath: "body",
|
|
@@ -890,11 +892,11 @@ const body = {
|
|
|
890
892
|
element: {
|
|
891
893
|
type: {
|
|
892
894
|
name: "Composite",
|
|
893
|
-
className: "TelemetryItem"
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}
|
|
895
|
+
className: "TelemetryItem",
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
},
|
|
898
900
|
};
|
|
899
901
|
const accept = {
|
|
900
902
|
parameterPath: "accept",
|
|
@@ -903,9 +905,9 @@ const accept = {
|
|
|
903
905
|
isConstant: true,
|
|
904
906
|
serializedName: "Accept",
|
|
905
907
|
type: {
|
|
906
|
-
name: "String"
|
|
907
|
-
}
|
|
908
|
-
}
|
|
908
|
+
name: "String",
|
|
909
|
+
},
|
|
910
|
+
},
|
|
909
911
|
};
|
|
910
912
|
const host = {
|
|
911
913
|
parameterPath: "host",
|
|
@@ -913,10 +915,10 @@ const host = {
|
|
|
913
915
|
serializedName: "Host",
|
|
914
916
|
required: true,
|
|
915
917
|
type: {
|
|
916
|
-
name: "String"
|
|
917
|
-
}
|
|
918
|
+
name: "String",
|
|
919
|
+
},
|
|
918
920
|
},
|
|
919
|
-
skipEncoding: true
|
|
921
|
+
skipEncoding: true,
|
|
920
922
|
};
|
|
921
923
|
|
|
922
924
|
/*
|
|
@@ -935,61 +937,61 @@ const TelemetryItem = {
|
|
|
935
937
|
defaultValue: 1,
|
|
936
938
|
serializedName: "ver",
|
|
937
939
|
type: {
|
|
938
|
-
name: "Number"
|
|
939
|
-
}
|
|
940
|
+
name: "Number",
|
|
941
|
+
},
|
|
940
942
|
},
|
|
941
943
|
name: {
|
|
942
944
|
serializedName: "name",
|
|
943
945
|
required: true,
|
|
944
946
|
type: {
|
|
945
|
-
name: "String"
|
|
946
|
-
}
|
|
947
|
+
name: "String",
|
|
948
|
+
},
|
|
947
949
|
},
|
|
948
950
|
time: {
|
|
949
951
|
serializedName: "time",
|
|
950
952
|
required: true,
|
|
951
953
|
type: {
|
|
952
|
-
name: "DateTime"
|
|
953
|
-
}
|
|
954
|
+
name: "DateTime",
|
|
955
|
+
},
|
|
954
956
|
},
|
|
955
957
|
sampleRate: {
|
|
956
958
|
defaultValue: 100,
|
|
957
959
|
serializedName: "sampleRate",
|
|
958
960
|
type: {
|
|
959
|
-
name: "Number"
|
|
960
|
-
}
|
|
961
|
+
name: "Number",
|
|
962
|
+
},
|
|
961
963
|
},
|
|
962
964
|
sequence: {
|
|
963
965
|
constraints: {
|
|
964
|
-
MaxLength: 64
|
|
966
|
+
MaxLength: 64,
|
|
965
967
|
},
|
|
966
968
|
serializedName: "seq",
|
|
967
969
|
type: {
|
|
968
|
-
name: "String"
|
|
969
|
-
}
|
|
970
|
+
name: "String",
|
|
971
|
+
},
|
|
970
972
|
},
|
|
971
973
|
instrumentationKey: {
|
|
972
974
|
serializedName: "iKey",
|
|
973
975
|
type: {
|
|
974
|
-
name: "String"
|
|
975
|
-
}
|
|
976
|
+
name: "String",
|
|
977
|
+
},
|
|
976
978
|
},
|
|
977
979
|
tags: {
|
|
978
980
|
serializedName: "tags",
|
|
979
981
|
type: {
|
|
980
982
|
name: "Dictionary",
|
|
981
|
-
value: { type: { name: "String" } }
|
|
982
|
-
}
|
|
983
|
+
value: { type: { name: "String" } },
|
|
984
|
+
},
|
|
983
985
|
},
|
|
984
986
|
data: {
|
|
985
987
|
serializedName: "data",
|
|
986
988
|
type: {
|
|
987
989
|
name: "Composite",
|
|
988
|
-
className: "MonitorBase"
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
990
|
+
className: "MonitorBase",
|
|
991
|
+
},
|
|
992
|
+
},
|
|
993
|
+
},
|
|
994
|
+
},
|
|
993
995
|
};
|
|
994
996
|
const MonitorBase = {
|
|
995
997
|
type: {
|
|
@@ -999,18 +1001,18 @@ const MonitorBase = {
|
|
|
999
1001
|
baseType: {
|
|
1000
1002
|
serializedName: "baseType",
|
|
1001
1003
|
type: {
|
|
1002
|
-
name: "String"
|
|
1003
|
-
}
|
|
1004
|
+
name: "String",
|
|
1005
|
+
},
|
|
1004
1006
|
},
|
|
1005
1007
|
baseData: {
|
|
1006
1008
|
serializedName: "baseData",
|
|
1007
1009
|
type: {
|
|
1008
1010
|
name: "Composite",
|
|
1009
|
-
className: "MonitorDomain"
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1011
|
+
className: "MonitorDomain",
|
|
1012
|
+
},
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1014
1016
|
};
|
|
1015
1017
|
const MonitorDomain = {
|
|
1016
1018
|
type: {
|
|
@@ -1023,11 +1025,11 @@ const MonitorDomain = {
|
|
|
1023
1025
|
serializedName: "ver",
|
|
1024
1026
|
required: true,
|
|
1025
1027
|
type: {
|
|
1026
|
-
name: "Number"
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1028
|
+
name: "Number",
|
|
1029
|
+
},
|
|
1030
|
+
},
|
|
1031
|
+
},
|
|
1032
|
+
},
|
|
1031
1033
|
};
|
|
1032
1034
|
const TrackResponse = {
|
|
1033
1035
|
type: {
|
|
@@ -1037,14 +1039,14 @@ const TrackResponse = {
|
|
|
1037
1039
|
itemsReceived: {
|
|
1038
1040
|
serializedName: "itemsReceived",
|
|
1039
1041
|
type: {
|
|
1040
|
-
name: "Number"
|
|
1041
|
-
}
|
|
1042
|
+
name: "Number",
|
|
1043
|
+
},
|
|
1042
1044
|
},
|
|
1043
1045
|
itemsAccepted: {
|
|
1044
1046
|
serializedName: "itemsAccepted",
|
|
1045
1047
|
type: {
|
|
1046
|
-
name: "Number"
|
|
1047
|
-
}
|
|
1048
|
+
name: "Number",
|
|
1049
|
+
},
|
|
1048
1050
|
},
|
|
1049
1051
|
errors: {
|
|
1050
1052
|
serializedName: "errors",
|
|
@@ -1053,13 +1055,13 @@ const TrackResponse = {
|
|
|
1053
1055
|
element: {
|
|
1054
1056
|
type: {
|
|
1055
1057
|
name: "Composite",
|
|
1056
|
-
className: "TelemetryErrorDetails"
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1058
|
+
className: "TelemetryErrorDetails",
|
|
1059
|
+
},
|
|
1060
|
+
},
|
|
1061
|
+
},
|
|
1062
|
+
},
|
|
1063
|
+
},
|
|
1064
|
+
},
|
|
1063
1065
|
};
|
|
1064
1066
|
const TelemetryErrorDetails = {
|
|
1065
1067
|
type: {
|
|
@@ -1069,23 +1071,23 @@ const TelemetryErrorDetails = {
|
|
|
1069
1071
|
index: {
|
|
1070
1072
|
serializedName: "index",
|
|
1071
1073
|
type: {
|
|
1072
|
-
name: "Number"
|
|
1073
|
-
}
|
|
1074
|
+
name: "Number",
|
|
1075
|
+
},
|
|
1074
1076
|
},
|
|
1075
1077
|
statusCode: {
|
|
1076
1078
|
serializedName: "statusCode",
|
|
1077
1079
|
type: {
|
|
1078
|
-
name: "Number"
|
|
1079
|
-
}
|
|
1080
|
+
name: "Number",
|
|
1081
|
+
},
|
|
1080
1082
|
},
|
|
1081
1083
|
message: {
|
|
1082
1084
|
serializedName: "message",
|
|
1083
1085
|
type: {
|
|
1084
|
-
name: "String"
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1086
|
+
name: "String",
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
},
|
|
1090
|
+
},
|
|
1089
1091
|
};
|
|
1090
1092
|
const MetricDataPoint = {
|
|
1091
1093
|
type: {
|
|
@@ -1094,66 +1096,66 @@ const MetricDataPoint = {
|
|
|
1094
1096
|
modelProperties: {
|
|
1095
1097
|
namespace: {
|
|
1096
1098
|
constraints: {
|
|
1097
|
-
MaxLength: 256
|
|
1099
|
+
MaxLength: 256,
|
|
1098
1100
|
},
|
|
1099
1101
|
serializedName: "ns",
|
|
1100
1102
|
type: {
|
|
1101
|
-
name: "String"
|
|
1102
|
-
}
|
|
1103
|
+
name: "String",
|
|
1104
|
+
},
|
|
1103
1105
|
},
|
|
1104
1106
|
name: {
|
|
1105
1107
|
constraints: {
|
|
1106
|
-
MaxLength: 1024
|
|
1108
|
+
MaxLength: 1024,
|
|
1107
1109
|
},
|
|
1108
1110
|
serializedName: "name",
|
|
1109
1111
|
required: true,
|
|
1110
1112
|
type: {
|
|
1111
|
-
name: "String"
|
|
1112
|
-
}
|
|
1113
|
+
name: "String",
|
|
1114
|
+
},
|
|
1113
1115
|
},
|
|
1114
1116
|
dataPointType: {
|
|
1115
1117
|
serializedName: "kind",
|
|
1116
1118
|
type: {
|
|
1117
|
-
name: "String"
|
|
1118
|
-
}
|
|
1119
|
+
name: "String",
|
|
1120
|
+
},
|
|
1119
1121
|
},
|
|
1120
1122
|
value: {
|
|
1121
1123
|
serializedName: "value",
|
|
1122
1124
|
required: true,
|
|
1123
1125
|
type: {
|
|
1124
|
-
name: "Number"
|
|
1125
|
-
}
|
|
1126
|
+
name: "Number",
|
|
1127
|
+
},
|
|
1126
1128
|
},
|
|
1127
1129
|
count: {
|
|
1128
1130
|
serializedName: "count",
|
|
1129
1131
|
nullable: true,
|
|
1130
1132
|
type: {
|
|
1131
|
-
name: "Number"
|
|
1132
|
-
}
|
|
1133
|
+
name: "Number",
|
|
1134
|
+
},
|
|
1133
1135
|
},
|
|
1134
1136
|
min: {
|
|
1135
1137
|
serializedName: "min",
|
|
1136
1138
|
nullable: true,
|
|
1137
1139
|
type: {
|
|
1138
|
-
name: "Number"
|
|
1139
|
-
}
|
|
1140
|
+
name: "Number",
|
|
1141
|
+
},
|
|
1140
1142
|
},
|
|
1141
1143
|
max: {
|
|
1142
1144
|
serializedName: "max",
|
|
1143
1145
|
nullable: true,
|
|
1144
1146
|
type: {
|
|
1145
|
-
name: "Number"
|
|
1146
|
-
}
|
|
1147
|
+
name: "Number",
|
|
1148
|
+
},
|
|
1147
1149
|
},
|
|
1148
1150
|
stdDev: {
|
|
1149
1151
|
serializedName: "stdDev",
|
|
1150
1152
|
nullable: true,
|
|
1151
1153
|
type: {
|
|
1152
|
-
name: "Number"
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1154
|
+
name: "Number",
|
|
1155
|
+
},
|
|
1156
|
+
},
|
|
1157
|
+
},
|
|
1158
|
+
},
|
|
1157
1159
|
};
|
|
1158
1160
|
const TelemetryExceptionDetails = {
|
|
1159
1161
|
type: {
|
|
@@ -1163,49 +1165,49 @@ const TelemetryExceptionDetails = {
|
|
|
1163
1165
|
id: {
|
|
1164
1166
|
serializedName: "id",
|
|
1165
1167
|
type: {
|
|
1166
|
-
name: "Number"
|
|
1167
|
-
}
|
|
1168
|
+
name: "Number",
|
|
1169
|
+
},
|
|
1168
1170
|
},
|
|
1169
1171
|
outerId: {
|
|
1170
1172
|
serializedName: "outerId",
|
|
1171
1173
|
type: {
|
|
1172
|
-
name: "Number"
|
|
1173
|
-
}
|
|
1174
|
+
name: "Number",
|
|
1175
|
+
},
|
|
1174
1176
|
},
|
|
1175
1177
|
typeName: {
|
|
1176
1178
|
constraints: {
|
|
1177
|
-
MaxLength: 1024
|
|
1179
|
+
MaxLength: 1024,
|
|
1178
1180
|
},
|
|
1179
1181
|
serializedName: "typeName",
|
|
1180
1182
|
type: {
|
|
1181
|
-
name: "String"
|
|
1182
|
-
}
|
|
1183
|
+
name: "String",
|
|
1184
|
+
},
|
|
1183
1185
|
},
|
|
1184
1186
|
message: {
|
|
1185
1187
|
constraints: {
|
|
1186
|
-
MaxLength: 32768
|
|
1188
|
+
MaxLength: 32768,
|
|
1187
1189
|
},
|
|
1188
1190
|
serializedName: "message",
|
|
1189
1191
|
required: true,
|
|
1190
1192
|
type: {
|
|
1191
|
-
name: "String"
|
|
1192
|
-
}
|
|
1193
|
+
name: "String",
|
|
1194
|
+
},
|
|
1193
1195
|
},
|
|
1194
1196
|
hasFullStack: {
|
|
1195
1197
|
defaultValue: true,
|
|
1196
1198
|
serializedName: "hasFullStack",
|
|
1197
1199
|
type: {
|
|
1198
|
-
name: "Boolean"
|
|
1199
|
-
}
|
|
1200
|
+
name: "Boolean",
|
|
1201
|
+
},
|
|
1200
1202
|
},
|
|
1201
1203
|
stack: {
|
|
1202
1204
|
constraints: {
|
|
1203
|
-
MaxLength: 32768
|
|
1205
|
+
MaxLength: 32768,
|
|
1204
1206
|
},
|
|
1205
1207
|
serializedName: "stack",
|
|
1206
1208
|
type: {
|
|
1207
|
-
name: "String"
|
|
1208
|
-
}
|
|
1209
|
+
name: "String",
|
|
1210
|
+
},
|
|
1209
1211
|
},
|
|
1210
1212
|
parsedStack: {
|
|
1211
1213
|
serializedName: "parsedStack",
|
|
@@ -1214,13 +1216,13 @@ const TelemetryExceptionDetails = {
|
|
|
1214
1216
|
element: {
|
|
1215
1217
|
type: {
|
|
1216
1218
|
name: "Composite",
|
|
1217
|
-
className: "StackFrame"
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1219
|
+
className: "StackFrame",
|
|
1220
|
+
},
|
|
1221
|
+
},
|
|
1222
|
+
},
|
|
1223
|
+
},
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1224
1226
|
};
|
|
1225
1227
|
const StackFrame = {
|
|
1226
1228
|
type: {
|
|
@@ -1231,45 +1233,45 @@ const StackFrame = {
|
|
|
1231
1233
|
serializedName: "level",
|
|
1232
1234
|
required: true,
|
|
1233
1235
|
type: {
|
|
1234
|
-
name: "Number"
|
|
1235
|
-
}
|
|
1236
|
+
name: "Number",
|
|
1237
|
+
},
|
|
1236
1238
|
},
|
|
1237
1239
|
method: {
|
|
1238
1240
|
constraints: {
|
|
1239
|
-
MaxLength: 1024
|
|
1241
|
+
MaxLength: 1024,
|
|
1240
1242
|
},
|
|
1241
1243
|
serializedName: "method",
|
|
1242
1244
|
required: true,
|
|
1243
1245
|
type: {
|
|
1244
|
-
name: "String"
|
|
1245
|
-
}
|
|
1246
|
+
name: "String",
|
|
1247
|
+
},
|
|
1246
1248
|
},
|
|
1247
1249
|
assembly: {
|
|
1248
1250
|
constraints: {
|
|
1249
|
-
MaxLength: 1024
|
|
1251
|
+
MaxLength: 1024,
|
|
1250
1252
|
},
|
|
1251
1253
|
serializedName: "assembly",
|
|
1252
1254
|
type: {
|
|
1253
|
-
name: "String"
|
|
1254
|
-
}
|
|
1255
|
+
name: "String",
|
|
1256
|
+
},
|
|
1255
1257
|
},
|
|
1256
1258
|
fileName: {
|
|
1257
1259
|
constraints: {
|
|
1258
|
-
MaxLength: 1024
|
|
1260
|
+
MaxLength: 1024,
|
|
1259
1261
|
},
|
|
1260
1262
|
serializedName: "fileName",
|
|
1261
1263
|
type: {
|
|
1262
|
-
name: "String"
|
|
1263
|
-
}
|
|
1264
|
+
name: "String",
|
|
1265
|
+
},
|
|
1264
1266
|
},
|
|
1265
1267
|
line: {
|
|
1266
1268
|
serializedName: "line",
|
|
1267
1269
|
type: {
|
|
1268
|
-
name: "Number"
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1270
|
+
name: "Number",
|
|
1271
|
+
},
|
|
1272
|
+
},
|
|
1273
|
+
},
|
|
1274
|
+
},
|
|
1273
1275
|
};
|
|
1274
1276
|
const AvailabilityData = {
|
|
1275
1277
|
type: {
|
|
@@ -1278,64 +1280,64 @@ const AvailabilityData = {
|
|
|
1278
1280
|
additionalProperties: { type: { name: "Object" } },
|
|
1279
1281
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { id: {
|
|
1280
1282
|
constraints: {
|
|
1281
|
-
MaxLength: 512
|
|
1283
|
+
MaxLength: 512,
|
|
1282
1284
|
},
|
|
1283
1285
|
serializedName: "id",
|
|
1284
1286
|
required: true,
|
|
1285
1287
|
type: {
|
|
1286
|
-
name: "String"
|
|
1287
|
-
}
|
|
1288
|
+
name: "String",
|
|
1289
|
+
},
|
|
1288
1290
|
}, name: {
|
|
1289
1291
|
constraints: {
|
|
1290
|
-
MaxLength: 1024
|
|
1292
|
+
MaxLength: 1024,
|
|
1291
1293
|
},
|
|
1292
1294
|
serializedName: "name",
|
|
1293
1295
|
required: true,
|
|
1294
1296
|
type: {
|
|
1295
|
-
name: "String"
|
|
1296
|
-
}
|
|
1297
|
+
name: "String",
|
|
1298
|
+
},
|
|
1297
1299
|
}, duration: {
|
|
1298
1300
|
serializedName: "duration",
|
|
1299
1301
|
required: true,
|
|
1300
1302
|
type: {
|
|
1301
|
-
name: "String"
|
|
1302
|
-
}
|
|
1303
|
+
name: "String",
|
|
1304
|
+
},
|
|
1303
1305
|
}, success: {
|
|
1304
1306
|
serializedName: "success",
|
|
1305
1307
|
required: true,
|
|
1306
1308
|
type: {
|
|
1307
|
-
name: "Boolean"
|
|
1308
|
-
}
|
|
1309
|
+
name: "Boolean",
|
|
1310
|
+
},
|
|
1309
1311
|
}, runLocation: {
|
|
1310
1312
|
constraints: {
|
|
1311
|
-
MaxLength: 1024
|
|
1313
|
+
MaxLength: 1024,
|
|
1312
1314
|
},
|
|
1313
1315
|
serializedName: "runLocation",
|
|
1314
1316
|
type: {
|
|
1315
|
-
name: "String"
|
|
1316
|
-
}
|
|
1317
|
+
name: "String",
|
|
1318
|
+
},
|
|
1317
1319
|
}, message: {
|
|
1318
1320
|
constraints: {
|
|
1319
|
-
MaxLength: 8192
|
|
1321
|
+
MaxLength: 8192,
|
|
1320
1322
|
},
|
|
1321
1323
|
serializedName: "message",
|
|
1322
1324
|
type: {
|
|
1323
|
-
name: "String"
|
|
1324
|
-
}
|
|
1325
|
+
name: "String",
|
|
1326
|
+
},
|
|
1325
1327
|
}, properties: {
|
|
1326
1328
|
serializedName: "properties",
|
|
1327
1329
|
type: {
|
|
1328
1330
|
name: "Dictionary",
|
|
1329
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1330
|
-
}
|
|
1331
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1332
|
+
},
|
|
1331
1333
|
}, measurements: {
|
|
1332
1334
|
serializedName: "measurements",
|
|
1333
1335
|
type: {
|
|
1334
1336
|
name: "Dictionary",
|
|
1335
|
-
value: { type: { name: "Number" } }
|
|
1336
|
-
}
|
|
1337
|
-
} })
|
|
1338
|
-
}
|
|
1337
|
+
value: { type: { name: "Number" } },
|
|
1338
|
+
},
|
|
1339
|
+
} }),
|
|
1340
|
+
},
|
|
1339
1341
|
};
|
|
1340
1342
|
const TelemetryEventData = {
|
|
1341
1343
|
type: {
|
|
@@ -1344,27 +1346,27 @@ const TelemetryEventData = {
|
|
|
1344
1346
|
additionalProperties: { type: { name: "Object" } },
|
|
1345
1347
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { name: {
|
|
1346
1348
|
constraints: {
|
|
1347
|
-
MaxLength: 512
|
|
1349
|
+
MaxLength: 512,
|
|
1348
1350
|
},
|
|
1349
1351
|
serializedName: "name",
|
|
1350
1352
|
required: true,
|
|
1351
1353
|
type: {
|
|
1352
|
-
name: "String"
|
|
1353
|
-
}
|
|
1354
|
+
name: "String",
|
|
1355
|
+
},
|
|
1354
1356
|
}, properties: {
|
|
1355
1357
|
serializedName: "properties",
|
|
1356
1358
|
type: {
|
|
1357
1359
|
name: "Dictionary",
|
|
1358
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1359
|
-
}
|
|
1360
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1361
|
+
},
|
|
1360
1362
|
}, measurements: {
|
|
1361
1363
|
serializedName: "measurements",
|
|
1362
1364
|
type: {
|
|
1363
1365
|
name: "Dictionary",
|
|
1364
|
-
value: { type: { name: "Number" } }
|
|
1365
|
-
}
|
|
1366
|
-
} })
|
|
1367
|
-
}
|
|
1366
|
+
value: { type: { name: "Number" } },
|
|
1367
|
+
},
|
|
1368
|
+
} }),
|
|
1369
|
+
},
|
|
1368
1370
|
};
|
|
1369
1371
|
const TelemetryExceptionData = {
|
|
1370
1372
|
type: {
|
|
@@ -1379,38 +1381,38 @@ const TelemetryExceptionData = {
|
|
|
1379
1381
|
element: {
|
|
1380
1382
|
type: {
|
|
1381
1383
|
name: "Composite",
|
|
1382
|
-
className: "TelemetryExceptionDetails"
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1384
|
+
className: "TelemetryExceptionDetails",
|
|
1385
|
+
},
|
|
1386
|
+
},
|
|
1387
|
+
},
|
|
1386
1388
|
}, severityLevel: {
|
|
1387
1389
|
serializedName: "severityLevel",
|
|
1388
1390
|
nullable: true,
|
|
1389
1391
|
type: {
|
|
1390
|
-
name: "String"
|
|
1391
|
-
}
|
|
1392
|
+
name: "String",
|
|
1393
|
+
},
|
|
1392
1394
|
}, problemId: {
|
|
1393
1395
|
constraints: {
|
|
1394
|
-
MaxLength: 1024
|
|
1396
|
+
MaxLength: 1024,
|
|
1395
1397
|
},
|
|
1396
1398
|
serializedName: "problemId",
|
|
1397
1399
|
type: {
|
|
1398
|
-
name: "String"
|
|
1399
|
-
}
|
|
1400
|
+
name: "String",
|
|
1401
|
+
},
|
|
1400
1402
|
}, properties: {
|
|
1401
1403
|
serializedName: "properties",
|
|
1402
1404
|
type: {
|
|
1403
1405
|
name: "Dictionary",
|
|
1404
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1405
|
-
}
|
|
1406
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1407
|
+
},
|
|
1406
1408
|
}, measurements: {
|
|
1407
1409
|
serializedName: "measurements",
|
|
1408
1410
|
type: {
|
|
1409
1411
|
name: "Dictionary",
|
|
1410
|
-
value: { type: { name: "Number" } }
|
|
1411
|
-
}
|
|
1412
|
-
} })
|
|
1413
|
-
}
|
|
1412
|
+
value: { type: { name: "Number" } },
|
|
1413
|
+
},
|
|
1414
|
+
} }),
|
|
1415
|
+
},
|
|
1414
1416
|
};
|
|
1415
1417
|
const MessageData = {
|
|
1416
1418
|
type: {
|
|
@@ -1419,32 +1421,32 @@ const MessageData = {
|
|
|
1419
1421
|
additionalProperties: { type: { name: "Object" } },
|
|
1420
1422
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { message: {
|
|
1421
1423
|
constraints: {
|
|
1422
|
-
MaxLength: 32768
|
|
1424
|
+
MaxLength: 32768,
|
|
1423
1425
|
},
|
|
1424
1426
|
serializedName: "message",
|
|
1425
1427
|
required: true,
|
|
1426
1428
|
type: {
|
|
1427
|
-
name: "String"
|
|
1428
|
-
}
|
|
1429
|
+
name: "String",
|
|
1430
|
+
},
|
|
1429
1431
|
}, severityLevel: {
|
|
1430
1432
|
serializedName: "severityLevel",
|
|
1431
1433
|
type: {
|
|
1432
|
-
name: "String"
|
|
1433
|
-
}
|
|
1434
|
+
name: "String",
|
|
1435
|
+
},
|
|
1434
1436
|
}, properties: {
|
|
1435
1437
|
serializedName: "properties",
|
|
1436
1438
|
type: {
|
|
1437
1439
|
name: "Dictionary",
|
|
1438
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1439
|
-
}
|
|
1440
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1441
|
+
},
|
|
1440
1442
|
}, measurements: {
|
|
1441
1443
|
serializedName: "measurements",
|
|
1442
1444
|
type: {
|
|
1443
1445
|
name: "Dictionary",
|
|
1444
|
-
value: { type: { name: "Number" } }
|
|
1445
|
-
}
|
|
1446
|
-
} })
|
|
1447
|
-
}
|
|
1446
|
+
value: { type: { name: "Number" } },
|
|
1447
|
+
},
|
|
1448
|
+
} }),
|
|
1449
|
+
},
|
|
1448
1450
|
};
|
|
1449
1451
|
const MetricsData = {
|
|
1450
1452
|
type: {
|
|
@@ -1459,18 +1461,18 @@ const MetricsData = {
|
|
|
1459
1461
|
element: {
|
|
1460
1462
|
type: {
|
|
1461
1463
|
name: "Composite",
|
|
1462
|
-
className: "MetricDataPoint"
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1464
|
+
className: "MetricDataPoint",
|
|
1465
|
+
},
|
|
1466
|
+
},
|
|
1467
|
+
},
|
|
1466
1468
|
}, properties: {
|
|
1467
1469
|
serializedName: "properties",
|
|
1468
1470
|
type: {
|
|
1469
1471
|
name: "Dictionary",
|
|
1470
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1471
|
-
}
|
|
1472
|
-
} })
|
|
1473
|
-
}
|
|
1472
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1473
|
+
},
|
|
1474
|
+
} }),
|
|
1475
|
+
},
|
|
1474
1476
|
};
|
|
1475
1477
|
const PageViewData = {
|
|
1476
1478
|
type: {
|
|
@@ -1479,57 +1481,57 @@ const PageViewData = {
|
|
|
1479
1481
|
additionalProperties: { type: { name: "Object" } },
|
|
1480
1482
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { id: {
|
|
1481
1483
|
constraints: {
|
|
1482
|
-
MaxLength: 512
|
|
1484
|
+
MaxLength: 512,
|
|
1483
1485
|
},
|
|
1484
1486
|
serializedName: "id",
|
|
1485
1487
|
required: true,
|
|
1486
1488
|
type: {
|
|
1487
|
-
name: "String"
|
|
1488
|
-
}
|
|
1489
|
+
name: "String",
|
|
1490
|
+
},
|
|
1489
1491
|
}, name: {
|
|
1490
1492
|
constraints: {
|
|
1491
|
-
MaxLength: 1024
|
|
1493
|
+
MaxLength: 1024,
|
|
1492
1494
|
},
|
|
1493
1495
|
serializedName: "name",
|
|
1494
1496
|
required: true,
|
|
1495
1497
|
type: {
|
|
1496
|
-
name: "String"
|
|
1497
|
-
}
|
|
1498
|
+
name: "String",
|
|
1499
|
+
},
|
|
1498
1500
|
}, url: {
|
|
1499
1501
|
constraints: {
|
|
1500
|
-
MaxLength: 2048
|
|
1502
|
+
MaxLength: 2048,
|
|
1501
1503
|
},
|
|
1502
1504
|
serializedName: "url",
|
|
1503
1505
|
type: {
|
|
1504
|
-
name: "String"
|
|
1505
|
-
}
|
|
1506
|
+
name: "String",
|
|
1507
|
+
},
|
|
1506
1508
|
}, duration: {
|
|
1507
1509
|
serializedName: "duration",
|
|
1508
1510
|
type: {
|
|
1509
|
-
name: "String"
|
|
1510
|
-
}
|
|
1511
|
+
name: "String",
|
|
1512
|
+
},
|
|
1511
1513
|
}, referredUri: {
|
|
1512
1514
|
constraints: {
|
|
1513
|
-
MaxLength: 2048
|
|
1515
|
+
MaxLength: 2048,
|
|
1514
1516
|
},
|
|
1515
1517
|
serializedName: "referredUri",
|
|
1516
1518
|
type: {
|
|
1517
|
-
name: "String"
|
|
1518
|
-
}
|
|
1519
|
+
name: "String",
|
|
1520
|
+
},
|
|
1519
1521
|
}, properties: {
|
|
1520
1522
|
serializedName: "properties",
|
|
1521
1523
|
type: {
|
|
1522
1524
|
name: "Dictionary",
|
|
1523
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1524
|
-
}
|
|
1525
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1526
|
+
},
|
|
1525
1527
|
}, measurements: {
|
|
1526
1528
|
serializedName: "measurements",
|
|
1527
1529
|
type: {
|
|
1528
1530
|
name: "Dictionary",
|
|
1529
|
-
value: { type: { name: "Number" } }
|
|
1530
|
-
}
|
|
1531
|
-
} })
|
|
1532
|
-
}
|
|
1531
|
+
value: { type: { name: "Number" } },
|
|
1532
|
+
},
|
|
1533
|
+
} }),
|
|
1534
|
+
},
|
|
1533
1535
|
};
|
|
1534
1536
|
const PageViewPerfData = {
|
|
1535
1537
|
type: {
|
|
@@ -1538,74 +1540,74 @@ const PageViewPerfData = {
|
|
|
1538
1540
|
additionalProperties: { type: { name: "Object" } },
|
|
1539
1541
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { id: {
|
|
1540
1542
|
constraints: {
|
|
1541
|
-
MaxLength: 512
|
|
1543
|
+
MaxLength: 512,
|
|
1542
1544
|
},
|
|
1543
1545
|
serializedName: "id",
|
|
1544
1546
|
required: true,
|
|
1545
1547
|
type: {
|
|
1546
|
-
name: "String"
|
|
1547
|
-
}
|
|
1548
|
+
name: "String",
|
|
1549
|
+
},
|
|
1548
1550
|
}, name: {
|
|
1549
1551
|
constraints: {
|
|
1550
|
-
MaxLength: 1024
|
|
1552
|
+
MaxLength: 1024,
|
|
1551
1553
|
},
|
|
1552
1554
|
serializedName: "name",
|
|
1553
1555
|
required: true,
|
|
1554
1556
|
type: {
|
|
1555
|
-
name: "String"
|
|
1556
|
-
}
|
|
1557
|
+
name: "String",
|
|
1558
|
+
},
|
|
1557
1559
|
}, url: {
|
|
1558
1560
|
constraints: {
|
|
1559
|
-
MaxLength: 2048
|
|
1561
|
+
MaxLength: 2048,
|
|
1560
1562
|
},
|
|
1561
1563
|
serializedName: "url",
|
|
1562
1564
|
type: {
|
|
1563
|
-
name: "String"
|
|
1564
|
-
}
|
|
1565
|
+
name: "String",
|
|
1566
|
+
},
|
|
1565
1567
|
}, duration: {
|
|
1566
1568
|
serializedName: "duration",
|
|
1567
1569
|
type: {
|
|
1568
|
-
name: "String"
|
|
1569
|
-
}
|
|
1570
|
+
name: "String",
|
|
1571
|
+
},
|
|
1570
1572
|
}, perfTotal: {
|
|
1571
1573
|
serializedName: "perfTotal",
|
|
1572
1574
|
type: {
|
|
1573
|
-
name: "String"
|
|
1574
|
-
}
|
|
1575
|
+
name: "String",
|
|
1576
|
+
},
|
|
1575
1577
|
}, networkConnect: {
|
|
1576
1578
|
serializedName: "networkConnect",
|
|
1577
1579
|
type: {
|
|
1578
|
-
name: "String"
|
|
1579
|
-
}
|
|
1580
|
+
name: "String",
|
|
1581
|
+
},
|
|
1580
1582
|
}, sentRequest: {
|
|
1581
1583
|
serializedName: "sentRequest",
|
|
1582
1584
|
type: {
|
|
1583
|
-
name: "String"
|
|
1584
|
-
}
|
|
1585
|
+
name: "String",
|
|
1586
|
+
},
|
|
1585
1587
|
}, receivedResponse: {
|
|
1586
1588
|
serializedName: "receivedResponse",
|
|
1587
1589
|
type: {
|
|
1588
|
-
name: "String"
|
|
1589
|
-
}
|
|
1590
|
+
name: "String",
|
|
1591
|
+
},
|
|
1590
1592
|
}, domProcessing: {
|
|
1591
1593
|
serializedName: "domProcessing",
|
|
1592
1594
|
type: {
|
|
1593
|
-
name: "String"
|
|
1594
|
-
}
|
|
1595
|
+
name: "String",
|
|
1596
|
+
},
|
|
1595
1597
|
}, properties: {
|
|
1596
1598
|
serializedName: "properties",
|
|
1597
1599
|
type: {
|
|
1598
1600
|
name: "Dictionary",
|
|
1599
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1600
|
-
}
|
|
1601
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1602
|
+
},
|
|
1601
1603
|
}, measurements: {
|
|
1602
1604
|
serializedName: "measurements",
|
|
1603
1605
|
type: {
|
|
1604
1606
|
name: "Dictionary",
|
|
1605
|
-
value: { type: { name: "Number" } }
|
|
1606
|
-
}
|
|
1607
|
-
} })
|
|
1608
|
-
}
|
|
1607
|
+
value: { type: { name: "Number" } },
|
|
1608
|
+
},
|
|
1609
|
+
} }),
|
|
1610
|
+
},
|
|
1609
1611
|
};
|
|
1610
1612
|
const RemoteDependencyData = {
|
|
1611
1613
|
type: {
|
|
@@ -1614,79 +1616,79 @@ const RemoteDependencyData = {
|
|
|
1614
1616
|
additionalProperties: { type: { name: "Object" } },
|
|
1615
1617
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { id: {
|
|
1616
1618
|
constraints: {
|
|
1617
|
-
MaxLength: 512
|
|
1619
|
+
MaxLength: 512,
|
|
1618
1620
|
},
|
|
1619
1621
|
serializedName: "id",
|
|
1620
1622
|
type: {
|
|
1621
|
-
name: "String"
|
|
1622
|
-
}
|
|
1623
|
+
name: "String",
|
|
1624
|
+
},
|
|
1623
1625
|
}, name: {
|
|
1624
1626
|
constraints: {
|
|
1625
|
-
MaxLength: 1024
|
|
1627
|
+
MaxLength: 1024,
|
|
1626
1628
|
},
|
|
1627
1629
|
serializedName: "name",
|
|
1628
1630
|
required: true,
|
|
1629
1631
|
type: {
|
|
1630
|
-
name: "String"
|
|
1631
|
-
}
|
|
1632
|
+
name: "String",
|
|
1633
|
+
},
|
|
1632
1634
|
}, resultCode: {
|
|
1633
1635
|
constraints: {
|
|
1634
|
-
MaxLength: 1024
|
|
1636
|
+
MaxLength: 1024,
|
|
1635
1637
|
},
|
|
1636
1638
|
serializedName: "resultCode",
|
|
1637
1639
|
type: {
|
|
1638
|
-
name: "String"
|
|
1639
|
-
}
|
|
1640
|
+
name: "String",
|
|
1641
|
+
},
|
|
1640
1642
|
}, data: {
|
|
1641
1643
|
constraints: {
|
|
1642
|
-
MaxLength: 8192
|
|
1644
|
+
MaxLength: 8192,
|
|
1643
1645
|
},
|
|
1644
1646
|
serializedName: "data",
|
|
1645
1647
|
type: {
|
|
1646
|
-
name: "String"
|
|
1647
|
-
}
|
|
1648
|
+
name: "String",
|
|
1649
|
+
},
|
|
1648
1650
|
}, type: {
|
|
1649
1651
|
constraints: {
|
|
1650
|
-
MaxLength: 1024
|
|
1652
|
+
MaxLength: 1024,
|
|
1651
1653
|
},
|
|
1652
1654
|
serializedName: "type",
|
|
1653
1655
|
type: {
|
|
1654
|
-
name: "String"
|
|
1655
|
-
}
|
|
1656
|
+
name: "String",
|
|
1657
|
+
},
|
|
1656
1658
|
}, target: {
|
|
1657
1659
|
constraints: {
|
|
1658
|
-
MaxLength: 1024
|
|
1660
|
+
MaxLength: 1024,
|
|
1659
1661
|
},
|
|
1660
1662
|
serializedName: "target",
|
|
1661
1663
|
type: {
|
|
1662
|
-
name: "String"
|
|
1663
|
-
}
|
|
1664
|
+
name: "String",
|
|
1665
|
+
},
|
|
1664
1666
|
}, duration: {
|
|
1665
1667
|
serializedName: "duration",
|
|
1666
1668
|
required: true,
|
|
1667
1669
|
type: {
|
|
1668
|
-
name: "String"
|
|
1669
|
-
}
|
|
1670
|
+
name: "String",
|
|
1671
|
+
},
|
|
1670
1672
|
}, success: {
|
|
1671
1673
|
defaultValue: true,
|
|
1672
1674
|
serializedName: "success",
|
|
1673
1675
|
type: {
|
|
1674
|
-
name: "Boolean"
|
|
1675
|
-
}
|
|
1676
|
+
name: "Boolean",
|
|
1677
|
+
},
|
|
1676
1678
|
}, properties: {
|
|
1677
1679
|
serializedName: "properties",
|
|
1678
1680
|
type: {
|
|
1679
1681
|
name: "Dictionary",
|
|
1680
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1681
|
-
}
|
|
1682
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1683
|
+
},
|
|
1682
1684
|
}, measurements: {
|
|
1683
1685
|
serializedName: "measurements",
|
|
1684
1686
|
type: {
|
|
1685
1687
|
name: "Dictionary",
|
|
1686
|
-
value: { type: { name: "Number" } }
|
|
1687
|
-
}
|
|
1688
|
-
} })
|
|
1689
|
-
}
|
|
1688
|
+
value: { type: { name: "Number" } },
|
|
1689
|
+
},
|
|
1690
|
+
} }),
|
|
1691
|
+
},
|
|
1690
1692
|
};
|
|
1691
1693
|
const RequestData = {
|
|
1692
1694
|
type: {
|
|
@@ -1695,73 +1697,73 @@ const RequestData = {
|
|
|
1695
1697
|
additionalProperties: { type: { name: "Object" } },
|
|
1696
1698
|
modelProperties: Object.assign(Object.assign({}, MonitorDomain.type.modelProperties), { id: {
|
|
1697
1699
|
constraints: {
|
|
1698
|
-
MaxLength: 512
|
|
1700
|
+
MaxLength: 512,
|
|
1699
1701
|
},
|
|
1700
1702
|
serializedName: "id",
|
|
1701
1703
|
required: true,
|
|
1702
1704
|
type: {
|
|
1703
|
-
name: "String"
|
|
1704
|
-
}
|
|
1705
|
+
name: "String",
|
|
1706
|
+
},
|
|
1705
1707
|
}, name: {
|
|
1706
1708
|
constraints: {
|
|
1707
|
-
MaxLength: 1024
|
|
1709
|
+
MaxLength: 1024,
|
|
1708
1710
|
},
|
|
1709
1711
|
serializedName: "name",
|
|
1710
1712
|
type: {
|
|
1711
|
-
name: "String"
|
|
1712
|
-
}
|
|
1713
|
+
name: "String",
|
|
1714
|
+
},
|
|
1713
1715
|
}, duration: {
|
|
1714
1716
|
serializedName: "duration",
|
|
1715
1717
|
required: true,
|
|
1716
1718
|
type: {
|
|
1717
|
-
name: "String"
|
|
1718
|
-
}
|
|
1719
|
+
name: "String",
|
|
1720
|
+
},
|
|
1719
1721
|
}, success: {
|
|
1720
1722
|
defaultValue: true,
|
|
1721
1723
|
serializedName: "success",
|
|
1722
1724
|
required: true,
|
|
1723
1725
|
type: {
|
|
1724
|
-
name: "Boolean"
|
|
1725
|
-
}
|
|
1726
|
+
name: "Boolean",
|
|
1727
|
+
},
|
|
1726
1728
|
}, responseCode: {
|
|
1727
1729
|
constraints: {
|
|
1728
|
-
MaxLength: 1024
|
|
1730
|
+
MaxLength: 1024,
|
|
1729
1731
|
},
|
|
1730
1732
|
serializedName: "responseCode",
|
|
1731
1733
|
required: true,
|
|
1732
1734
|
type: {
|
|
1733
|
-
name: "String"
|
|
1734
|
-
}
|
|
1735
|
+
name: "String",
|
|
1736
|
+
},
|
|
1735
1737
|
}, source: {
|
|
1736
1738
|
constraints: {
|
|
1737
|
-
MaxLength: 1024
|
|
1739
|
+
MaxLength: 1024,
|
|
1738
1740
|
},
|
|
1739
1741
|
serializedName: "source",
|
|
1740
1742
|
type: {
|
|
1741
|
-
name: "String"
|
|
1742
|
-
}
|
|
1743
|
+
name: "String",
|
|
1744
|
+
},
|
|
1743
1745
|
}, url: {
|
|
1744
1746
|
constraints: {
|
|
1745
|
-
MaxLength: 2048
|
|
1747
|
+
MaxLength: 2048,
|
|
1746
1748
|
},
|
|
1747
1749
|
serializedName: "url",
|
|
1748
1750
|
type: {
|
|
1749
|
-
name: "String"
|
|
1750
|
-
}
|
|
1751
|
+
name: "String",
|
|
1752
|
+
},
|
|
1751
1753
|
}, properties: {
|
|
1752
1754
|
serializedName: "properties",
|
|
1753
1755
|
type: {
|
|
1754
1756
|
name: "Dictionary",
|
|
1755
|
-
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } }
|
|
1756
|
-
}
|
|
1757
|
+
value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
|
|
1758
|
+
},
|
|
1757
1759
|
}, measurements: {
|
|
1758
1760
|
serializedName: "measurements",
|
|
1759
1761
|
type: {
|
|
1760
1762
|
name: "Dictionary",
|
|
1761
|
-
value: { type: { name: "Number" } }
|
|
1762
|
-
}
|
|
1763
|
-
} })
|
|
1764
|
-
}
|
|
1763
|
+
value: { type: { name: "Number" } },
|
|
1764
|
+
},
|
|
1765
|
+
} }),
|
|
1766
|
+
},
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
1767
1769
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
@@ -1804,32 +1806,16 @@ class ApplicationInsightsClient extends coreClient__namespace.ServiceClient {
|
|
|
1804
1806
|
options = {};
|
|
1805
1807
|
}
|
|
1806
1808
|
const defaults = {
|
|
1807
|
-
requestContentType: "application/json; charset=utf-8"
|
|
1809
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1808
1810
|
};
|
|
1809
|
-
const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.
|
|
1811
|
+
const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.19`;
|
|
1810
1812
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1811
1813
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1812
1814
|
: `${packageDetails}`;
|
|
1813
1815
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1814
|
-
userAgentPrefix
|
|
1815
|
-
},
|
|
1816
|
+
userAgentPrefix,
|
|
1817
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Host}/v2.1" });
|
|
1816
1818
|
super(optionsWithDefaults);
|
|
1817
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1818
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1819
|
-
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1820
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1821
|
-
if (!bearerTokenAuthenticationPolicyFound) {
|
|
1822
|
-
this.pipeline.removePolicy({
|
|
1823
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1824
|
-
});
|
|
1825
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1826
|
-
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
1827
|
-
challengeCallbacks: {
|
|
1828
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1829
|
-
}
|
|
1830
|
-
}));
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
1819
|
// Assigning values to Constant parameters
|
|
1834
1820
|
this.host = options.host || "https://dc.services.visualstudio.com";
|
|
1835
1821
|
}
|
|
@@ -1849,37 +1835,37 @@ const trackOperationSpec = {
|
|
|
1849
1835
|
httpMethod: "POST",
|
|
1850
1836
|
responses: {
|
|
1851
1837
|
200: {
|
|
1852
|
-
bodyMapper: TrackResponse
|
|
1838
|
+
bodyMapper: TrackResponse,
|
|
1853
1839
|
},
|
|
1854
1840
|
206: {
|
|
1855
|
-
bodyMapper: TrackResponse
|
|
1841
|
+
bodyMapper: TrackResponse,
|
|
1856
1842
|
},
|
|
1857
1843
|
400: {
|
|
1858
1844
|
bodyMapper: TrackResponse,
|
|
1859
|
-
isError: true
|
|
1845
|
+
isError: true,
|
|
1860
1846
|
},
|
|
1861
1847
|
402: {
|
|
1862
1848
|
bodyMapper: TrackResponse,
|
|
1863
|
-
isError: true
|
|
1849
|
+
isError: true,
|
|
1864
1850
|
},
|
|
1865
1851
|
429: {
|
|
1866
1852
|
bodyMapper: TrackResponse,
|
|
1867
|
-
isError: true
|
|
1853
|
+
isError: true,
|
|
1868
1854
|
},
|
|
1869
1855
|
500: {
|
|
1870
1856
|
bodyMapper: TrackResponse,
|
|
1871
|
-
isError: true
|
|
1857
|
+
isError: true,
|
|
1872
1858
|
},
|
|
1873
1859
|
503: {
|
|
1874
1860
|
bodyMapper: TrackResponse,
|
|
1875
|
-
isError: true
|
|
1876
|
-
}
|
|
1861
|
+
isError: true,
|
|
1862
|
+
},
|
|
1877
1863
|
},
|
|
1878
1864
|
requestBody: body,
|
|
1879
1865
|
urlParameters: [host],
|
|
1880
1866
|
headerParameters: [contentType, accept],
|
|
1881
1867
|
mediaType: "json",
|
|
1882
|
-
serializer
|
|
1868
|
+
serializer,
|
|
1883
1869
|
};
|
|
1884
1870
|
|
|
1885
1871
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -1905,6 +1891,7 @@ const STATSBEAT_LANGUAGE = "node";
|
|
|
1905
1891
|
const MAX_STATSBEAT_FAILURES = 3;
|
|
1906
1892
|
const StatsbeatResourceProvider = {
|
|
1907
1893
|
appsvc: "appsvc",
|
|
1894
|
+
aks: "aks",
|
|
1908
1895
|
functions: "functions",
|
|
1909
1896
|
vm: "vm",
|
|
1910
1897
|
unknown: "unknown",
|
|
@@ -1941,8 +1928,8 @@ const EU_ENDPOINTS = [
|
|
|
1941
1928
|
];
|
|
1942
1929
|
var StatsbeatFeatureType;
|
|
1943
1930
|
(function (StatsbeatFeatureType) {
|
|
1944
|
-
StatsbeatFeatureType["FEATURE"] = "
|
|
1945
|
-
StatsbeatFeatureType["INSTRUMENTATION"] = "
|
|
1931
|
+
StatsbeatFeatureType[StatsbeatFeatureType["FEATURE"] = 0] = "FEATURE";
|
|
1932
|
+
StatsbeatFeatureType[StatsbeatFeatureType["INSTRUMENTATION"] = 1] = "INSTRUMENTATION";
|
|
1946
1933
|
})(StatsbeatFeatureType || (StatsbeatFeatureType = {}));
|
|
1947
1934
|
|
|
1948
1935
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -1958,13 +1945,25 @@ class StatsbeatMetrics {
|
|
|
1958
1945
|
async getResourceProvider() {
|
|
1959
1946
|
// Check resource provider
|
|
1960
1947
|
this.resourceProvider = StatsbeatResourceProvider.unknown;
|
|
1961
|
-
if (process.env.
|
|
1948
|
+
if (process.env.AKS_ARM_NAMESPACE_ID) {
|
|
1949
|
+
// AKS
|
|
1950
|
+
this.resourceProvider = StatsbeatResourceProvider.aks;
|
|
1951
|
+
this.resourceIdentifier = process.env.AKS_ARM_NAMESPACE_ID;
|
|
1952
|
+
}
|
|
1953
|
+
else if (process.env.WEBSITE_SITE_NAME) {
|
|
1962
1954
|
// Web apps
|
|
1963
1955
|
this.resourceProvider = StatsbeatResourceProvider.appsvc;
|
|
1956
|
+
this.resourceIdentifier = process.env.WEBSITE_SITE_NAME;
|
|
1957
|
+
if (process.env.WEBSITE_HOME_STAMPNAME) {
|
|
1958
|
+
this.resourceIdentifier += "/" + process.env.WEBSITE_HOME_STAMPNAME;
|
|
1959
|
+
}
|
|
1964
1960
|
}
|
|
1965
1961
|
else if (process.env.FUNCTIONS_WORKER_RUNTIME) {
|
|
1966
1962
|
// Function apps
|
|
1967
1963
|
this.resourceProvider = StatsbeatResourceProvider.functions;
|
|
1964
|
+
if (process.env.WEBSITE_HOSTNAME) {
|
|
1965
|
+
this.resourceIdentifier = process.env.WEBSITE_HOSTNAME;
|
|
1966
|
+
}
|
|
1968
1967
|
}
|
|
1969
1968
|
else if (await this.getAzureComputeMetadata()) {
|
|
1970
1969
|
this.resourceProvider = StatsbeatResourceProvider.vm;
|
|
@@ -2134,8 +2133,7 @@ class AzureMonitorStatsbeatExporter extends AzureMonitorBaseExporter {
|
|
|
2134
2133
|
setTimeout(() => resultCallback({ code: core.ExportResultCode.FAILED }), 0);
|
|
2135
2134
|
return;
|
|
2136
2135
|
}
|
|
2137
|
-
const envelopes = resourceMetricsToEnvelope(metrics, this.instrumentationKey, true
|
|
2138
|
-
);
|
|
2136
|
+
const envelopes = resourceMetricsToEnvelope(metrics, this.instrumentationKey, true);
|
|
2139
2137
|
// Supress tracing until OpenTelemetry Metrics SDK support it
|
|
2140
2138
|
api.context.with(core.suppressTracing(api.context.active()), async () => {
|
|
2141
2139
|
resultCallback(await this._sender.exportEnvelopes(envelopes));
|
|
@@ -2164,7 +2162,7 @@ class NetworkStatsbeatMetrics extends StatsbeatMetrics {
|
|
|
2164
2162
|
this.isInitialized = false;
|
|
2165
2163
|
this.statsCollectionShortInterval = 900000; // 15 minutes
|
|
2166
2164
|
this.networkStatsbeatCollection = [];
|
|
2167
|
-
this.attach = "
|
|
2165
|
+
this.attach = "Manual";
|
|
2168
2166
|
this.connectionString = super.getConnectionString(options.endpointUrl);
|
|
2169
2167
|
this.networkStatsbeatMeterProvider = new sdkMetrics.MeterProvider();
|
|
2170
2168
|
const exporterConfig = {
|
|
@@ -2408,7 +2406,7 @@ class LongIntervalStatsbeatMetrics extends StatsbeatMetrics {
|
|
|
2408
2406
|
super();
|
|
2409
2407
|
this.AZURE_MONITOR_STATSBEAT_FEATURES = process.env.AZURE_MONITOR_STATSBEAT_FEATURES;
|
|
2410
2408
|
this.statsCollectionLongInterval = 86400000; // 1 day
|
|
2411
|
-
this.attach = "
|
|
2409
|
+
this.attach = "Manual";
|
|
2412
2410
|
this.feature = 0;
|
|
2413
2411
|
this.instrumentation = 0;
|
|
2414
2412
|
this.isInitialized = false;
|
|
@@ -2676,6 +2674,12 @@ class BaseSender {
|
|
|
2676
2674
|
(_g = this.networkStatsbeatMetrics) === null || _g === void 0 ? void 0 : _g.countRetry(restError.statusCode);
|
|
2677
2675
|
return this.persist(envelopes);
|
|
2678
2676
|
}
|
|
2677
|
+
else if (restError.statusCode === 400 &&
|
|
2678
|
+
restError.message.includes("Invalid instrumentation key")) {
|
|
2679
|
+
const invalidInstrumentationKeyError = new Error("Invalid instrumentation key");
|
|
2680
|
+
this.shutdownStatsbeat();
|
|
2681
|
+
return { code: core.ExportResultCode.FAILED, error: invalidInstrumentationKeyError };
|
|
2682
|
+
}
|
|
2679
2683
|
if (this.isNetworkError(restError)) {
|
|
2680
2684
|
if (restError.statusCode) {
|
|
2681
2685
|
(_h = this.networkStatsbeatMetrics) === null || _h === void 0 ? void 0 : _h.countRetry(restError.statusCode);
|
|
@@ -2705,17 +2709,25 @@ class BaseSender {
|
|
|
2705
2709
|
return { code: core.ExportResultCode.FAILED, error: ex };
|
|
2706
2710
|
}
|
|
2707
2711
|
}
|
|
2708
|
-
|
|
2712
|
+
/**
|
|
2713
|
+
* Disable collection of statsbeat metrics after max failures
|
|
2714
|
+
*/
|
|
2709
2715
|
incrementStatsbeatFailure() {
|
|
2710
|
-
var _a, _b;
|
|
2711
2716
|
this.statsbeatFailureCount++;
|
|
2712
2717
|
if (this.statsbeatFailureCount > MAX_STATSBEAT_FAILURES) {
|
|
2713
|
-
|
|
2714
|
-
(_b = this.longIntervalStatsbeatMetrics) === null || _b === void 0 ? void 0 : _b.shutdown();
|
|
2715
|
-
this.networkStatsbeatMetrics = undefined;
|
|
2716
|
-
this.statsbeatFailureCount = 0;
|
|
2718
|
+
this.shutdownStatsbeat();
|
|
2717
2719
|
}
|
|
2718
2720
|
}
|
|
2721
|
+
/**
|
|
2722
|
+
* Shutdown statsbeat metrics
|
|
2723
|
+
*/
|
|
2724
|
+
shutdownStatsbeat() {
|
|
2725
|
+
var _a, _b;
|
|
2726
|
+
(_a = this.networkStatsbeatMetrics) === null || _a === void 0 ? void 0 : _a.shutdown();
|
|
2727
|
+
(_b = this.longIntervalStatsbeatMetrics) === null || _b === void 0 ? void 0 : _b.shutdown();
|
|
2728
|
+
this.networkStatsbeatMetrics = undefined;
|
|
2729
|
+
this.statsbeatFailureCount = 0;
|
|
2730
|
+
}
|
|
2719
2731
|
async sendFirstPersistedFile() {
|
|
2720
2732
|
try {
|
|
2721
2733
|
const envelopes = (await this.persister.shift());
|
|
@@ -3281,7 +3293,12 @@ function createDependencyData(span) {
|
|
|
3281
3293
|
}
|
|
3282
3294
|
// grpc Dependency
|
|
3283
3295
|
else if (rpcSystem) {
|
|
3284
|
-
|
|
3296
|
+
if (rpcSystem == DependencyTypes.Wcf) {
|
|
3297
|
+
remoteDependencyData.type = DependencyTypes.Wcf;
|
|
3298
|
+
}
|
|
3299
|
+
else {
|
|
3300
|
+
remoteDependencyData.type = DependencyTypes.Grpc;
|
|
3301
|
+
}
|
|
3285
3302
|
const grpcStatusCode = span.attributes[semanticConventions.SemanticAttributes.RPC_GRPC_STATUS_CODE];
|
|
3286
3303
|
if (grpcStatusCode) {
|
|
3287
3304
|
remoteDependencyData.resultCode = String(grpcStatusCode);
|