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