@opentelemetry/otlp-grpc-exporter-base 0.40.0 → 0.41.1
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/build/src/LogsExportServiceClient.js.map +1 -1
- package/build/src/MetricsExportServiceClient.js.map +1 -1
- package/build/src/TraceExportServiceClient.js.map +1 -1
- package/build/src/generated/root.js +1006 -1267
- package/build/src/generated/root.js.map +1 -1
- package/build/src/util.js +3 -0
- package/build/src/util.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +17 -15
|
@@ -1064,217 +1064,6 @@ $root.opentelemetry = (function () {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
return KeyValue;
|
|
1066
1066
|
})();
|
|
1067
|
-
v1.InstrumentationLibrary = (function () {
|
|
1068
|
-
/**
|
|
1069
|
-
* Properties of an InstrumentationLibrary.
|
|
1070
|
-
* @memberof opentelemetry.proto.common.v1
|
|
1071
|
-
* @interface IInstrumentationLibrary
|
|
1072
|
-
* @property {string|null} [name] InstrumentationLibrary name
|
|
1073
|
-
* @property {string|null} [version] InstrumentationLibrary version
|
|
1074
|
-
*/
|
|
1075
|
-
/**
|
|
1076
|
-
* Constructs a new InstrumentationLibrary.
|
|
1077
|
-
* @memberof opentelemetry.proto.common.v1
|
|
1078
|
-
* @classdesc Represents an InstrumentationLibrary.
|
|
1079
|
-
* @implements IInstrumentationLibrary
|
|
1080
|
-
* @constructor
|
|
1081
|
-
* @param {opentelemetry.proto.common.v1.IInstrumentationLibrary=} [properties] Properties to set
|
|
1082
|
-
*/
|
|
1083
|
-
function InstrumentationLibrary(properties) {
|
|
1084
|
-
if (properties)
|
|
1085
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1086
|
-
if (properties[keys[i]] != null)
|
|
1087
|
-
this[keys[i]] = properties[keys[i]];
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* InstrumentationLibrary name.
|
|
1091
|
-
* @member {string|null|undefined} name
|
|
1092
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1093
|
-
* @instance
|
|
1094
|
-
*/
|
|
1095
|
-
InstrumentationLibrary.prototype.name = null;
|
|
1096
|
-
/**
|
|
1097
|
-
* InstrumentationLibrary version.
|
|
1098
|
-
* @member {string|null|undefined} version
|
|
1099
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1100
|
-
* @instance
|
|
1101
|
-
*/
|
|
1102
|
-
InstrumentationLibrary.prototype.version = null;
|
|
1103
|
-
/**
|
|
1104
|
-
* Creates a new InstrumentationLibrary instance using the specified properties.
|
|
1105
|
-
* @function create
|
|
1106
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1107
|
-
* @static
|
|
1108
|
-
* @param {opentelemetry.proto.common.v1.IInstrumentationLibrary=} [properties] Properties to set
|
|
1109
|
-
* @returns {opentelemetry.proto.common.v1.InstrumentationLibrary} InstrumentationLibrary instance
|
|
1110
|
-
*/
|
|
1111
|
-
InstrumentationLibrary.create = function create(properties) {
|
|
1112
|
-
return new InstrumentationLibrary(properties);
|
|
1113
|
-
};
|
|
1114
|
-
/**
|
|
1115
|
-
* Encodes the specified InstrumentationLibrary message. Does not implicitly {@link opentelemetry.proto.common.v1.InstrumentationLibrary.verify|verify} messages.
|
|
1116
|
-
* @function encode
|
|
1117
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1118
|
-
* @static
|
|
1119
|
-
* @param {opentelemetry.proto.common.v1.IInstrumentationLibrary} message InstrumentationLibrary message or plain object to encode
|
|
1120
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1121
|
-
* @returns {$protobuf.Writer} Writer
|
|
1122
|
-
*/
|
|
1123
|
-
InstrumentationLibrary.encode = function encode(message, writer) {
|
|
1124
|
-
if (!writer)
|
|
1125
|
-
writer = $Writer.create();
|
|
1126
|
-
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
1127
|
-
writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name);
|
|
1128
|
-
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
1129
|
-
writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.version);
|
|
1130
|
-
return writer;
|
|
1131
|
-
};
|
|
1132
|
-
/**
|
|
1133
|
-
* Encodes the specified InstrumentationLibrary message, length delimited. Does not implicitly {@link opentelemetry.proto.common.v1.InstrumentationLibrary.verify|verify} messages.
|
|
1134
|
-
* @function encodeDelimited
|
|
1135
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1136
|
-
* @static
|
|
1137
|
-
* @param {opentelemetry.proto.common.v1.IInstrumentationLibrary} message InstrumentationLibrary message or plain object to encode
|
|
1138
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1139
|
-
* @returns {$protobuf.Writer} Writer
|
|
1140
|
-
*/
|
|
1141
|
-
InstrumentationLibrary.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1142
|
-
return this.encode(message, writer).ldelim();
|
|
1143
|
-
};
|
|
1144
|
-
/**
|
|
1145
|
-
* Decodes an InstrumentationLibrary message from the specified reader or buffer.
|
|
1146
|
-
* @function decode
|
|
1147
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1148
|
-
* @static
|
|
1149
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1150
|
-
* @param {number} [length] Message length if known beforehand
|
|
1151
|
-
* @returns {opentelemetry.proto.common.v1.InstrumentationLibrary} InstrumentationLibrary
|
|
1152
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1153
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1154
|
-
*/
|
|
1155
|
-
InstrumentationLibrary.decode = function decode(reader, length) {
|
|
1156
|
-
if (!(reader instanceof $Reader))
|
|
1157
|
-
reader = $Reader.create(reader);
|
|
1158
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.common.v1.InstrumentationLibrary();
|
|
1159
|
-
while (reader.pos < end) {
|
|
1160
|
-
var tag = reader.uint32();
|
|
1161
|
-
switch (tag >>> 3) {
|
|
1162
|
-
case 1: {
|
|
1163
|
-
message.name = reader.string();
|
|
1164
|
-
break;
|
|
1165
|
-
}
|
|
1166
|
-
case 2: {
|
|
1167
|
-
message.version = reader.string();
|
|
1168
|
-
break;
|
|
1169
|
-
}
|
|
1170
|
-
default:
|
|
1171
|
-
reader.skipType(tag & 7);
|
|
1172
|
-
break;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
return message;
|
|
1176
|
-
};
|
|
1177
|
-
/**
|
|
1178
|
-
* Decodes an InstrumentationLibrary message from the specified reader or buffer, length delimited.
|
|
1179
|
-
* @function decodeDelimited
|
|
1180
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1181
|
-
* @static
|
|
1182
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1183
|
-
* @returns {opentelemetry.proto.common.v1.InstrumentationLibrary} InstrumentationLibrary
|
|
1184
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1185
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1186
|
-
*/
|
|
1187
|
-
InstrumentationLibrary.decodeDelimited = function decodeDelimited(reader) {
|
|
1188
|
-
if (!(reader instanceof $Reader))
|
|
1189
|
-
reader = new $Reader(reader);
|
|
1190
|
-
return this.decode(reader, reader.uint32());
|
|
1191
|
-
};
|
|
1192
|
-
/**
|
|
1193
|
-
* Verifies an InstrumentationLibrary message.
|
|
1194
|
-
* @function verify
|
|
1195
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1196
|
-
* @static
|
|
1197
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
1198
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1199
|
-
*/
|
|
1200
|
-
InstrumentationLibrary.verify = function verify(message) {
|
|
1201
|
-
if (typeof message !== "object" || message === null)
|
|
1202
|
-
return "object expected";
|
|
1203
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
1204
|
-
if (!$util.isString(message.name))
|
|
1205
|
-
return "name: string expected";
|
|
1206
|
-
if (message.version != null && message.hasOwnProperty("version"))
|
|
1207
|
-
if (!$util.isString(message.version))
|
|
1208
|
-
return "version: string expected";
|
|
1209
|
-
return null;
|
|
1210
|
-
};
|
|
1211
|
-
/**
|
|
1212
|
-
* Creates an InstrumentationLibrary message from a plain object. Also converts values to their respective internal types.
|
|
1213
|
-
* @function fromObject
|
|
1214
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1215
|
-
* @static
|
|
1216
|
-
* @param {Object.<string,*>} object Plain object
|
|
1217
|
-
* @returns {opentelemetry.proto.common.v1.InstrumentationLibrary} InstrumentationLibrary
|
|
1218
|
-
*/
|
|
1219
|
-
InstrumentationLibrary.fromObject = function fromObject(object) {
|
|
1220
|
-
if (object instanceof $root.opentelemetry.proto.common.v1.InstrumentationLibrary)
|
|
1221
|
-
return object;
|
|
1222
|
-
var message = new $root.opentelemetry.proto.common.v1.InstrumentationLibrary();
|
|
1223
|
-
if (object.name != null)
|
|
1224
|
-
message.name = String(object.name);
|
|
1225
|
-
if (object.version != null)
|
|
1226
|
-
message.version = String(object.version);
|
|
1227
|
-
return message;
|
|
1228
|
-
};
|
|
1229
|
-
/**
|
|
1230
|
-
* Creates a plain object from an InstrumentationLibrary message. Also converts values to other types if specified.
|
|
1231
|
-
* @function toObject
|
|
1232
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1233
|
-
* @static
|
|
1234
|
-
* @param {opentelemetry.proto.common.v1.InstrumentationLibrary} message InstrumentationLibrary
|
|
1235
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1236
|
-
* @returns {Object.<string,*>} Plain object
|
|
1237
|
-
*/
|
|
1238
|
-
InstrumentationLibrary.toObject = function toObject(message, options) {
|
|
1239
|
-
if (!options)
|
|
1240
|
-
options = {};
|
|
1241
|
-
var object = {};
|
|
1242
|
-
if (options.defaults) {
|
|
1243
|
-
object.name = "";
|
|
1244
|
-
object.version = "";
|
|
1245
|
-
}
|
|
1246
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
1247
|
-
object.name = message.name;
|
|
1248
|
-
if (message.version != null && message.hasOwnProperty("version"))
|
|
1249
|
-
object.version = message.version;
|
|
1250
|
-
return object;
|
|
1251
|
-
};
|
|
1252
|
-
/**
|
|
1253
|
-
* Converts this InstrumentationLibrary to JSON.
|
|
1254
|
-
* @function toJSON
|
|
1255
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1256
|
-
* @instance
|
|
1257
|
-
* @returns {Object.<string,*>} JSON object
|
|
1258
|
-
*/
|
|
1259
|
-
InstrumentationLibrary.prototype.toJSON = function toJSON() {
|
|
1260
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1261
|
-
};
|
|
1262
|
-
/**
|
|
1263
|
-
* Gets the default type url for InstrumentationLibrary
|
|
1264
|
-
* @function getTypeUrl
|
|
1265
|
-
* @memberof opentelemetry.proto.common.v1.InstrumentationLibrary
|
|
1266
|
-
* @static
|
|
1267
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1268
|
-
* @returns {string} The default type url
|
|
1269
|
-
*/
|
|
1270
|
-
InstrumentationLibrary.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1271
|
-
if (typeUrlPrefix === undefined) {
|
|
1272
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
1273
|
-
}
|
|
1274
|
-
return typeUrlPrefix + "/opentelemetry.proto.common.v1.InstrumentationLibrary";
|
|
1275
|
-
};
|
|
1276
|
-
return InstrumentationLibrary;
|
|
1277
|
-
})();
|
|
1278
1067
|
v1.InstrumentationScope = (function () {
|
|
1279
1068
|
/**
|
|
1280
1069
|
* Properties of an InstrumentationScope.
|
|
@@ -1282,6 +1071,8 @@ $root.opentelemetry = (function () {
|
|
|
1282
1071
|
* @interface IInstrumentationScope
|
|
1283
1072
|
* @property {string|null} [name] InstrumentationScope name
|
|
1284
1073
|
* @property {string|null} [version] InstrumentationScope version
|
|
1074
|
+
* @property {Array.<opentelemetry.proto.common.v1.IKeyValue>|null} [attributes] InstrumentationScope attributes
|
|
1075
|
+
* @property {number|null} [droppedAttributesCount] InstrumentationScope droppedAttributesCount
|
|
1285
1076
|
*/
|
|
1286
1077
|
/**
|
|
1287
1078
|
* Constructs a new InstrumentationScope.
|
|
@@ -1292,6 +1083,7 @@ $root.opentelemetry = (function () {
|
|
|
1292
1083
|
* @param {opentelemetry.proto.common.v1.IInstrumentationScope=} [properties] Properties to set
|
|
1293
1084
|
*/
|
|
1294
1085
|
function InstrumentationScope(properties) {
|
|
1086
|
+
this.attributes = [];
|
|
1295
1087
|
if (properties)
|
|
1296
1088
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1297
1089
|
if (properties[keys[i]] != null)
|
|
@@ -1311,6 +1103,20 @@ $root.opentelemetry = (function () {
|
|
|
1311
1103
|
* @instance
|
|
1312
1104
|
*/
|
|
1313
1105
|
InstrumentationScope.prototype.version = null;
|
|
1106
|
+
/**
|
|
1107
|
+
* InstrumentationScope attributes.
|
|
1108
|
+
* @member {Array.<opentelemetry.proto.common.v1.IKeyValue>} attributes
|
|
1109
|
+
* @memberof opentelemetry.proto.common.v1.InstrumentationScope
|
|
1110
|
+
* @instance
|
|
1111
|
+
*/
|
|
1112
|
+
InstrumentationScope.prototype.attributes = $util.emptyArray;
|
|
1113
|
+
/**
|
|
1114
|
+
* InstrumentationScope droppedAttributesCount.
|
|
1115
|
+
* @member {number|null|undefined} droppedAttributesCount
|
|
1116
|
+
* @memberof opentelemetry.proto.common.v1.InstrumentationScope
|
|
1117
|
+
* @instance
|
|
1118
|
+
*/
|
|
1119
|
+
InstrumentationScope.prototype.droppedAttributesCount = null;
|
|
1314
1120
|
/**
|
|
1315
1121
|
* Creates a new InstrumentationScope instance using the specified properties.
|
|
1316
1122
|
* @function create
|
|
@@ -1338,6 +1144,11 @@ $root.opentelemetry = (function () {
|
|
|
1338
1144
|
writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name);
|
|
1339
1145
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
1340
1146
|
writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.version);
|
|
1147
|
+
if (message.attributes != null && message.attributes.length)
|
|
1148
|
+
for (var i = 0; i < message.attributes.length; ++i)
|
|
1149
|
+
$root.opentelemetry.proto.common.v1.KeyValue.encode(message.attributes[i], writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim();
|
|
1150
|
+
if (message.droppedAttributesCount != null && Object.hasOwnProperty.call(message, "droppedAttributesCount"))
|
|
1151
|
+
writer.uint32(/* id 4, wireType 0 =*/ 32).uint32(message.droppedAttributesCount);
|
|
1341
1152
|
return writer;
|
|
1342
1153
|
};
|
|
1343
1154
|
/**
|
|
@@ -1378,6 +1189,16 @@ $root.opentelemetry = (function () {
|
|
|
1378
1189
|
message.version = reader.string();
|
|
1379
1190
|
break;
|
|
1380
1191
|
}
|
|
1192
|
+
case 3: {
|
|
1193
|
+
if (!(message.attributes && message.attributes.length))
|
|
1194
|
+
message.attributes = [];
|
|
1195
|
+
message.attributes.push($root.opentelemetry.proto.common.v1.KeyValue.decode(reader, reader.uint32()));
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
case 4: {
|
|
1199
|
+
message.droppedAttributesCount = reader.uint32();
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1381
1202
|
default:
|
|
1382
1203
|
reader.skipType(tag & 7);
|
|
1383
1204
|
break;
|
|
@@ -1417,6 +1238,18 @@ $root.opentelemetry = (function () {
|
|
|
1417
1238
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
1418
1239
|
if (!$util.isString(message.version))
|
|
1419
1240
|
return "version: string expected";
|
|
1241
|
+
if (message.attributes != null && message.hasOwnProperty("attributes")) {
|
|
1242
|
+
if (!Array.isArray(message.attributes))
|
|
1243
|
+
return "attributes: array expected";
|
|
1244
|
+
for (var i = 0; i < message.attributes.length; ++i) {
|
|
1245
|
+
var error = $root.opentelemetry.proto.common.v1.KeyValue.verify(message.attributes[i]);
|
|
1246
|
+
if (error)
|
|
1247
|
+
return "attributes." + error;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
if (message.droppedAttributesCount != null && message.hasOwnProperty("droppedAttributesCount"))
|
|
1251
|
+
if (!$util.isInteger(message.droppedAttributesCount))
|
|
1252
|
+
return "droppedAttributesCount: integer expected";
|
|
1420
1253
|
return null;
|
|
1421
1254
|
};
|
|
1422
1255
|
/**
|
|
@@ -1435,6 +1268,18 @@ $root.opentelemetry = (function () {
|
|
|
1435
1268
|
message.name = String(object.name);
|
|
1436
1269
|
if (object.version != null)
|
|
1437
1270
|
message.version = String(object.version);
|
|
1271
|
+
if (object.attributes) {
|
|
1272
|
+
if (!Array.isArray(object.attributes))
|
|
1273
|
+
throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");
|
|
1274
|
+
message.attributes = [];
|
|
1275
|
+
for (var i = 0; i < object.attributes.length; ++i) {
|
|
1276
|
+
if (typeof object.attributes[i] !== "object")
|
|
1277
|
+
throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");
|
|
1278
|
+
message.attributes[i] = $root.opentelemetry.proto.common.v1.KeyValue.fromObject(object.attributes[i]);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
if (object.droppedAttributesCount != null)
|
|
1282
|
+
message.droppedAttributesCount = object.droppedAttributesCount >>> 0;
|
|
1438
1283
|
return message;
|
|
1439
1284
|
};
|
|
1440
1285
|
/**
|
|
@@ -1450,14 +1295,24 @@ $root.opentelemetry = (function () {
|
|
|
1450
1295
|
if (!options)
|
|
1451
1296
|
options = {};
|
|
1452
1297
|
var object = {};
|
|
1298
|
+
if (options.arrays || options.defaults)
|
|
1299
|
+
object.attributes = [];
|
|
1453
1300
|
if (options.defaults) {
|
|
1454
1301
|
object.name = "";
|
|
1455
1302
|
object.version = "";
|
|
1303
|
+
object.droppedAttributesCount = 0;
|
|
1456
1304
|
}
|
|
1457
1305
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
1458
1306
|
object.name = message.name;
|
|
1459
1307
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
1460
1308
|
object.version = message.version;
|
|
1309
|
+
if (message.attributes && message.attributes.length) {
|
|
1310
|
+
object.attributes = [];
|
|
1311
|
+
for (var j = 0; j < message.attributes.length; ++j)
|
|
1312
|
+
object.attributes[j] = $root.opentelemetry.proto.common.v1.KeyValue.toObject(message.attributes[j], options);
|
|
1313
|
+
}
|
|
1314
|
+
if (message.droppedAttributesCount != null && message.hasOwnProperty("droppedAttributesCount"))
|
|
1315
|
+
object.droppedAttributesCount = message.droppedAttributesCount;
|
|
1461
1316
|
return object;
|
|
1462
1317
|
};
|
|
1463
1318
|
/**
|
|
@@ -1970,7 +1825,6 @@ $root.opentelemetry = (function () {
|
|
|
1970
1825
|
* @interface IResourceSpans
|
|
1971
1826
|
* @property {opentelemetry.proto.resource.v1.IResource|null} [resource] ResourceSpans resource
|
|
1972
1827
|
* @property {Array.<opentelemetry.proto.trace.v1.IScopeSpans>|null} [scopeSpans] ResourceSpans scopeSpans
|
|
1973
|
-
* @property {Array.<opentelemetry.proto.trace.v1.IInstrumentationLibrarySpans>|null} [instrumentationLibrarySpans] ResourceSpans instrumentationLibrarySpans
|
|
1974
1828
|
* @property {string|null} [schemaUrl] ResourceSpans schemaUrl
|
|
1975
1829
|
*/
|
|
1976
1830
|
/**
|
|
@@ -1983,7 +1837,6 @@ $root.opentelemetry = (function () {
|
|
|
1983
1837
|
*/
|
|
1984
1838
|
function ResourceSpans(properties) {
|
|
1985
1839
|
this.scopeSpans = [];
|
|
1986
|
-
this.instrumentationLibrarySpans = [];
|
|
1987
1840
|
if (properties)
|
|
1988
1841
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1989
1842
|
if (properties[keys[i]] != null)
|
|
@@ -2003,13 +1856,6 @@ $root.opentelemetry = (function () {
|
|
|
2003
1856
|
* @instance
|
|
2004
1857
|
*/
|
|
2005
1858
|
ResourceSpans.prototype.scopeSpans = $util.emptyArray;
|
|
2006
|
-
/**
|
|
2007
|
-
* ResourceSpans instrumentationLibrarySpans.
|
|
2008
|
-
* @member {Array.<opentelemetry.proto.trace.v1.IInstrumentationLibrarySpans>} instrumentationLibrarySpans
|
|
2009
|
-
* @memberof opentelemetry.proto.trace.v1.ResourceSpans
|
|
2010
|
-
* @instance
|
|
2011
|
-
*/
|
|
2012
|
-
ResourceSpans.prototype.instrumentationLibrarySpans = $util.emptyArray;
|
|
2013
1859
|
/**
|
|
2014
1860
|
* ResourceSpans schemaUrl.
|
|
2015
1861
|
* @member {string|null|undefined} schemaUrl
|
|
@@ -2047,9 +1893,6 @@ $root.opentelemetry = (function () {
|
|
|
2047
1893
|
$root.opentelemetry.proto.trace.v1.ScopeSpans.encode(message.scopeSpans[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
2048
1894
|
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
2049
1895
|
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
2050
|
-
if (message.instrumentationLibrarySpans != null && message.instrumentationLibrarySpans.length)
|
|
2051
|
-
for (var i = 0; i < message.instrumentationLibrarySpans.length; ++i)
|
|
2052
|
-
$root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.encode(message.instrumentationLibrarySpans[i], writer.uint32(/* id 1000, wireType 2 =*/ 8002).fork()).ldelim();
|
|
2053
1896
|
return writer;
|
|
2054
1897
|
};
|
|
2055
1898
|
/**
|
|
@@ -2092,12 +1935,6 @@ $root.opentelemetry = (function () {
|
|
|
2092
1935
|
message.scopeSpans.push($root.opentelemetry.proto.trace.v1.ScopeSpans.decode(reader, reader.uint32()));
|
|
2093
1936
|
break;
|
|
2094
1937
|
}
|
|
2095
|
-
case 1000: {
|
|
2096
|
-
if (!(message.instrumentationLibrarySpans && message.instrumentationLibrarySpans.length))
|
|
2097
|
-
message.instrumentationLibrarySpans = [];
|
|
2098
|
-
message.instrumentationLibrarySpans.push($root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.decode(reader, reader.uint32()));
|
|
2099
|
-
break;
|
|
2100
|
-
}
|
|
2101
1938
|
case 3: {
|
|
2102
1939
|
message.schemaUrl = reader.string();
|
|
2103
1940
|
break;
|
|
@@ -2149,15 +1986,6 @@ $root.opentelemetry = (function () {
|
|
|
2149
1986
|
return "scopeSpans." + error;
|
|
2150
1987
|
}
|
|
2151
1988
|
}
|
|
2152
|
-
if (message.instrumentationLibrarySpans != null && message.hasOwnProperty("instrumentationLibrarySpans")) {
|
|
2153
|
-
if (!Array.isArray(message.instrumentationLibrarySpans))
|
|
2154
|
-
return "instrumentationLibrarySpans: array expected";
|
|
2155
|
-
for (var i = 0; i < message.instrumentationLibrarySpans.length; ++i) {
|
|
2156
|
-
var error = $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.verify(message.instrumentationLibrarySpans[i]);
|
|
2157
|
-
if (error)
|
|
2158
|
-
return "instrumentationLibrarySpans." + error;
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
1989
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
2162
1990
|
if (!$util.isString(message.schemaUrl))
|
|
2163
1991
|
return "schemaUrl: string expected";
|
|
@@ -2190,16 +2018,6 @@ $root.opentelemetry = (function () {
|
|
|
2190
2018
|
message.scopeSpans[i] = $root.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(object.scopeSpans[i]);
|
|
2191
2019
|
}
|
|
2192
2020
|
}
|
|
2193
|
-
if (object.instrumentationLibrarySpans) {
|
|
2194
|
-
if (!Array.isArray(object.instrumentationLibrarySpans))
|
|
2195
|
-
throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.instrumentationLibrarySpans: array expected");
|
|
2196
|
-
message.instrumentationLibrarySpans = [];
|
|
2197
|
-
for (var i = 0; i < object.instrumentationLibrarySpans.length; ++i) {
|
|
2198
|
-
if (typeof object.instrumentationLibrarySpans[i] !== "object")
|
|
2199
|
-
throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.instrumentationLibrarySpans: object expected");
|
|
2200
|
-
message.instrumentationLibrarySpans[i] = $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.fromObject(object.instrumentationLibrarySpans[i]);
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
2021
|
if (object.schemaUrl != null)
|
|
2204
2022
|
message.schemaUrl = String(object.schemaUrl);
|
|
2205
2023
|
return message;
|
|
@@ -2217,10 +2035,8 @@ $root.opentelemetry = (function () {
|
|
|
2217
2035
|
if (!options)
|
|
2218
2036
|
options = {};
|
|
2219
2037
|
var object = {};
|
|
2220
|
-
if (options.arrays || options.defaults)
|
|
2038
|
+
if (options.arrays || options.defaults)
|
|
2221
2039
|
object.scopeSpans = [];
|
|
2222
|
-
object.instrumentationLibrarySpans = [];
|
|
2223
|
-
}
|
|
2224
2040
|
if (options.defaults) {
|
|
2225
2041
|
object.resource = null;
|
|
2226
2042
|
object.schemaUrl = "";
|
|
@@ -2234,11 +2050,6 @@ $root.opentelemetry = (function () {
|
|
|
2234
2050
|
}
|
|
2235
2051
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
2236
2052
|
object.schemaUrl = message.schemaUrl;
|
|
2237
|
-
if (message.instrumentationLibrarySpans && message.instrumentationLibrarySpans.length) {
|
|
2238
|
-
object.instrumentationLibrarySpans = [];
|
|
2239
|
-
for (var j = 0; j < message.instrumentationLibrarySpans.length; ++j)
|
|
2240
|
-
object.instrumentationLibrarySpans[j] = $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.toObject(message.instrumentationLibrarySpans[j], options);
|
|
2241
|
-
}
|
|
2242
2053
|
return object;
|
|
2243
2054
|
};
|
|
2244
2055
|
/**
|
|
@@ -2527,311 +2338,51 @@ $root.opentelemetry = (function () {
|
|
|
2527
2338
|
};
|
|
2528
2339
|
return ScopeSpans;
|
|
2529
2340
|
})();
|
|
2530
|
-
v1.
|
|
2341
|
+
v1.Span = (function () {
|
|
2531
2342
|
/**
|
|
2532
|
-
* Properties of
|
|
2343
|
+
* Properties of a Span.
|
|
2533
2344
|
* @memberof opentelemetry.proto.trace.v1
|
|
2534
|
-
* @interface
|
|
2535
|
-
* @property {
|
|
2536
|
-
* @property {
|
|
2537
|
-
* @property {string|null} [
|
|
2345
|
+
* @interface ISpan
|
|
2346
|
+
* @property {Uint8Array|null} [traceId] Span traceId
|
|
2347
|
+
* @property {Uint8Array|null} [spanId] Span spanId
|
|
2348
|
+
* @property {string|null} [traceState] Span traceState
|
|
2349
|
+
* @property {Uint8Array|null} [parentSpanId] Span parentSpanId
|
|
2350
|
+
* @property {string|null} [name] Span name
|
|
2351
|
+
* @property {opentelemetry.proto.trace.v1.Span.SpanKind|null} [kind] Span kind
|
|
2352
|
+
* @property {number|Long|null} [startTimeUnixNano] Span startTimeUnixNano
|
|
2353
|
+
* @property {number|Long|null} [endTimeUnixNano] Span endTimeUnixNano
|
|
2354
|
+
* @property {Array.<opentelemetry.proto.common.v1.IKeyValue>|null} [attributes] Span attributes
|
|
2355
|
+
* @property {number|null} [droppedAttributesCount] Span droppedAttributesCount
|
|
2356
|
+
* @property {Array.<opentelemetry.proto.trace.v1.Span.IEvent>|null} [events] Span events
|
|
2357
|
+
* @property {number|null} [droppedEventsCount] Span droppedEventsCount
|
|
2358
|
+
* @property {Array.<opentelemetry.proto.trace.v1.Span.ILink>|null} [links] Span links
|
|
2359
|
+
* @property {number|null} [droppedLinksCount] Span droppedLinksCount
|
|
2360
|
+
* @property {opentelemetry.proto.trace.v1.IStatus|null} [status] Span status
|
|
2538
2361
|
*/
|
|
2539
2362
|
/**
|
|
2540
|
-
* Constructs a new
|
|
2363
|
+
* Constructs a new Span.
|
|
2541
2364
|
* @memberof opentelemetry.proto.trace.v1
|
|
2542
|
-
* @classdesc Represents
|
|
2543
|
-
* @implements
|
|
2365
|
+
* @classdesc Represents a Span.
|
|
2366
|
+
* @implements ISpan
|
|
2544
2367
|
* @constructor
|
|
2545
|
-
* @param {opentelemetry.proto.trace.v1.
|
|
2368
|
+
* @param {opentelemetry.proto.trace.v1.ISpan=} [properties] Properties to set
|
|
2546
2369
|
*/
|
|
2547
|
-
function
|
|
2548
|
-
this.
|
|
2370
|
+
function Span(properties) {
|
|
2371
|
+
this.attributes = [];
|
|
2372
|
+
this.events = [];
|
|
2373
|
+
this.links = [];
|
|
2549
2374
|
if (properties)
|
|
2550
2375
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2551
2376
|
if (properties[keys[i]] != null)
|
|
2552
2377
|
this[keys[i]] = properties[keys[i]];
|
|
2553
2378
|
}
|
|
2554
2379
|
/**
|
|
2555
|
-
*
|
|
2556
|
-
* @member {
|
|
2557
|
-
* @memberof opentelemetry.proto.trace.v1.
|
|
2380
|
+
* Span traceId.
|
|
2381
|
+
* @member {Uint8Array|null|undefined} traceId
|
|
2382
|
+
* @memberof opentelemetry.proto.trace.v1.Span
|
|
2558
2383
|
* @instance
|
|
2559
2384
|
*/
|
|
2560
|
-
|
|
2561
|
-
/**
|
|
2562
|
-
* InstrumentationLibrarySpans spans.
|
|
2563
|
-
* @member {Array.<opentelemetry.proto.trace.v1.ISpan>} spans
|
|
2564
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2565
|
-
* @instance
|
|
2566
|
-
*/
|
|
2567
|
-
InstrumentationLibrarySpans.prototype.spans = $util.emptyArray;
|
|
2568
|
-
/**
|
|
2569
|
-
* InstrumentationLibrarySpans schemaUrl.
|
|
2570
|
-
* @member {string|null|undefined} schemaUrl
|
|
2571
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2572
|
-
* @instance
|
|
2573
|
-
*/
|
|
2574
|
-
InstrumentationLibrarySpans.prototype.schemaUrl = null;
|
|
2575
|
-
/**
|
|
2576
|
-
* Creates a new InstrumentationLibrarySpans instance using the specified properties.
|
|
2577
|
-
* @function create
|
|
2578
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2579
|
-
* @static
|
|
2580
|
-
* @param {opentelemetry.proto.trace.v1.IInstrumentationLibrarySpans=} [properties] Properties to set
|
|
2581
|
-
* @returns {opentelemetry.proto.trace.v1.InstrumentationLibrarySpans} InstrumentationLibrarySpans instance
|
|
2582
|
-
*/
|
|
2583
|
-
InstrumentationLibrarySpans.create = function create(properties) {
|
|
2584
|
-
return new InstrumentationLibrarySpans(properties);
|
|
2585
|
-
};
|
|
2586
|
-
/**
|
|
2587
|
-
* Encodes the specified InstrumentationLibrarySpans message. Does not implicitly {@link opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.verify|verify} messages.
|
|
2588
|
-
* @function encode
|
|
2589
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2590
|
-
* @static
|
|
2591
|
-
* @param {opentelemetry.proto.trace.v1.IInstrumentationLibrarySpans} message InstrumentationLibrarySpans message or plain object to encode
|
|
2592
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2593
|
-
* @returns {$protobuf.Writer} Writer
|
|
2594
|
-
*/
|
|
2595
|
-
InstrumentationLibrarySpans.encode = function encode(message, writer) {
|
|
2596
|
-
if (!writer)
|
|
2597
|
-
writer = $Writer.create();
|
|
2598
|
-
if (message.instrumentationLibrary != null && Object.hasOwnProperty.call(message, "instrumentationLibrary"))
|
|
2599
|
-
$root.opentelemetry.proto.common.v1.InstrumentationLibrary.encode(message.instrumentationLibrary, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
2600
|
-
if (message.spans != null && message.spans.length)
|
|
2601
|
-
for (var i = 0; i < message.spans.length; ++i)
|
|
2602
|
-
$root.opentelemetry.proto.trace.v1.Span.encode(message.spans[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
2603
|
-
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
2604
|
-
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
2605
|
-
return writer;
|
|
2606
|
-
};
|
|
2607
|
-
/**
|
|
2608
|
-
* Encodes the specified InstrumentationLibrarySpans message, length delimited. Does not implicitly {@link opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.verify|verify} messages.
|
|
2609
|
-
* @function encodeDelimited
|
|
2610
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2611
|
-
* @static
|
|
2612
|
-
* @param {opentelemetry.proto.trace.v1.IInstrumentationLibrarySpans} message InstrumentationLibrarySpans message or plain object to encode
|
|
2613
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2614
|
-
* @returns {$protobuf.Writer} Writer
|
|
2615
|
-
*/
|
|
2616
|
-
InstrumentationLibrarySpans.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2617
|
-
return this.encode(message, writer).ldelim();
|
|
2618
|
-
};
|
|
2619
|
-
/**
|
|
2620
|
-
* Decodes an InstrumentationLibrarySpans message from the specified reader or buffer.
|
|
2621
|
-
* @function decode
|
|
2622
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2623
|
-
* @static
|
|
2624
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2625
|
-
* @param {number} [length] Message length if known beforehand
|
|
2626
|
-
* @returns {opentelemetry.proto.trace.v1.InstrumentationLibrarySpans} InstrumentationLibrarySpans
|
|
2627
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2628
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2629
|
-
*/
|
|
2630
|
-
InstrumentationLibrarySpans.decode = function decode(reader, length) {
|
|
2631
|
-
if (!(reader instanceof $Reader))
|
|
2632
|
-
reader = $Reader.create(reader);
|
|
2633
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans();
|
|
2634
|
-
while (reader.pos < end) {
|
|
2635
|
-
var tag = reader.uint32();
|
|
2636
|
-
switch (tag >>> 3) {
|
|
2637
|
-
case 1: {
|
|
2638
|
-
message.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.decode(reader, reader.uint32());
|
|
2639
|
-
break;
|
|
2640
|
-
}
|
|
2641
|
-
case 2: {
|
|
2642
|
-
if (!(message.spans && message.spans.length))
|
|
2643
|
-
message.spans = [];
|
|
2644
|
-
message.spans.push($root.opentelemetry.proto.trace.v1.Span.decode(reader, reader.uint32()));
|
|
2645
|
-
break;
|
|
2646
|
-
}
|
|
2647
|
-
case 3: {
|
|
2648
|
-
message.schemaUrl = reader.string();
|
|
2649
|
-
break;
|
|
2650
|
-
}
|
|
2651
|
-
default:
|
|
2652
|
-
reader.skipType(tag & 7);
|
|
2653
|
-
break;
|
|
2654
|
-
}
|
|
2655
|
-
}
|
|
2656
|
-
return message;
|
|
2657
|
-
};
|
|
2658
|
-
/**
|
|
2659
|
-
* Decodes an InstrumentationLibrarySpans message from the specified reader or buffer, length delimited.
|
|
2660
|
-
* @function decodeDelimited
|
|
2661
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2662
|
-
* @static
|
|
2663
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2664
|
-
* @returns {opentelemetry.proto.trace.v1.InstrumentationLibrarySpans} InstrumentationLibrarySpans
|
|
2665
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2666
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2667
|
-
*/
|
|
2668
|
-
InstrumentationLibrarySpans.decodeDelimited = function decodeDelimited(reader) {
|
|
2669
|
-
if (!(reader instanceof $Reader))
|
|
2670
|
-
reader = new $Reader(reader);
|
|
2671
|
-
return this.decode(reader, reader.uint32());
|
|
2672
|
-
};
|
|
2673
|
-
/**
|
|
2674
|
-
* Verifies an InstrumentationLibrarySpans message.
|
|
2675
|
-
* @function verify
|
|
2676
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2677
|
-
* @static
|
|
2678
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
2679
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2680
|
-
*/
|
|
2681
|
-
InstrumentationLibrarySpans.verify = function verify(message) {
|
|
2682
|
-
if (typeof message !== "object" || message === null)
|
|
2683
|
-
return "object expected";
|
|
2684
|
-
if (message.instrumentationLibrary != null && message.hasOwnProperty("instrumentationLibrary")) {
|
|
2685
|
-
var error = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.verify(message.instrumentationLibrary);
|
|
2686
|
-
if (error)
|
|
2687
|
-
return "instrumentationLibrary." + error;
|
|
2688
|
-
}
|
|
2689
|
-
if (message.spans != null && message.hasOwnProperty("spans")) {
|
|
2690
|
-
if (!Array.isArray(message.spans))
|
|
2691
|
-
return "spans: array expected";
|
|
2692
|
-
for (var i = 0; i < message.spans.length; ++i) {
|
|
2693
|
-
var error = $root.opentelemetry.proto.trace.v1.Span.verify(message.spans[i]);
|
|
2694
|
-
if (error)
|
|
2695
|
-
return "spans." + error;
|
|
2696
|
-
}
|
|
2697
|
-
}
|
|
2698
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
2699
|
-
if (!$util.isString(message.schemaUrl))
|
|
2700
|
-
return "schemaUrl: string expected";
|
|
2701
|
-
return null;
|
|
2702
|
-
};
|
|
2703
|
-
/**
|
|
2704
|
-
* Creates an InstrumentationLibrarySpans message from a plain object. Also converts values to their respective internal types.
|
|
2705
|
-
* @function fromObject
|
|
2706
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2707
|
-
* @static
|
|
2708
|
-
* @param {Object.<string,*>} object Plain object
|
|
2709
|
-
* @returns {opentelemetry.proto.trace.v1.InstrumentationLibrarySpans} InstrumentationLibrarySpans
|
|
2710
|
-
*/
|
|
2711
|
-
InstrumentationLibrarySpans.fromObject = function fromObject(object) {
|
|
2712
|
-
if (object instanceof $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans)
|
|
2713
|
-
return object;
|
|
2714
|
-
var message = new $root.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans();
|
|
2715
|
-
if (object.instrumentationLibrary != null) {
|
|
2716
|
-
if (typeof object.instrumentationLibrary !== "object")
|
|
2717
|
-
throw TypeError(".opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.instrumentationLibrary: object expected");
|
|
2718
|
-
message.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.fromObject(object.instrumentationLibrary);
|
|
2719
|
-
}
|
|
2720
|
-
if (object.spans) {
|
|
2721
|
-
if (!Array.isArray(object.spans))
|
|
2722
|
-
throw TypeError(".opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.spans: array expected");
|
|
2723
|
-
message.spans = [];
|
|
2724
|
-
for (var i = 0; i < object.spans.length; ++i) {
|
|
2725
|
-
if (typeof object.spans[i] !== "object")
|
|
2726
|
-
throw TypeError(".opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.spans: object expected");
|
|
2727
|
-
message.spans[i] = $root.opentelemetry.proto.trace.v1.Span.fromObject(object.spans[i]);
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
if (object.schemaUrl != null)
|
|
2731
|
-
message.schemaUrl = String(object.schemaUrl);
|
|
2732
|
-
return message;
|
|
2733
|
-
};
|
|
2734
|
-
/**
|
|
2735
|
-
* Creates a plain object from an InstrumentationLibrarySpans message. Also converts values to other types if specified.
|
|
2736
|
-
* @function toObject
|
|
2737
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2738
|
-
* @static
|
|
2739
|
-
* @param {opentelemetry.proto.trace.v1.InstrumentationLibrarySpans} message InstrumentationLibrarySpans
|
|
2740
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2741
|
-
* @returns {Object.<string,*>} Plain object
|
|
2742
|
-
*/
|
|
2743
|
-
InstrumentationLibrarySpans.toObject = function toObject(message, options) {
|
|
2744
|
-
if (!options)
|
|
2745
|
-
options = {};
|
|
2746
|
-
var object = {};
|
|
2747
|
-
if (options.arrays || options.defaults)
|
|
2748
|
-
object.spans = [];
|
|
2749
|
-
if (options.defaults) {
|
|
2750
|
-
object.instrumentationLibrary = null;
|
|
2751
|
-
object.schemaUrl = "";
|
|
2752
|
-
}
|
|
2753
|
-
if (message.instrumentationLibrary != null && message.hasOwnProperty("instrumentationLibrary"))
|
|
2754
|
-
object.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.toObject(message.instrumentationLibrary, options);
|
|
2755
|
-
if (message.spans && message.spans.length) {
|
|
2756
|
-
object.spans = [];
|
|
2757
|
-
for (var j = 0; j < message.spans.length; ++j)
|
|
2758
|
-
object.spans[j] = $root.opentelemetry.proto.trace.v1.Span.toObject(message.spans[j], options);
|
|
2759
|
-
}
|
|
2760
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
2761
|
-
object.schemaUrl = message.schemaUrl;
|
|
2762
|
-
return object;
|
|
2763
|
-
};
|
|
2764
|
-
/**
|
|
2765
|
-
* Converts this InstrumentationLibrarySpans to JSON.
|
|
2766
|
-
* @function toJSON
|
|
2767
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2768
|
-
* @instance
|
|
2769
|
-
* @returns {Object.<string,*>} JSON object
|
|
2770
|
-
*/
|
|
2771
|
-
InstrumentationLibrarySpans.prototype.toJSON = function toJSON() {
|
|
2772
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2773
|
-
};
|
|
2774
|
-
/**
|
|
2775
|
-
* Gets the default type url for InstrumentationLibrarySpans
|
|
2776
|
-
* @function getTypeUrl
|
|
2777
|
-
* @memberof opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
|
|
2778
|
-
* @static
|
|
2779
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2780
|
-
* @returns {string} The default type url
|
|
2781
|
-
*/
|
|
2782
|
-
InstrumentationLibrarySpans.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2783
|
-
if (typeUrlPrefix === undefined) {
|
|
2784
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
2785
|
-
}
|
|
2786
|
-
return typeUrlPrefix + "/opentelemetry.proto.trace.v1.InstrumentationLibrarySpans";
|
|
2787
|
-
};
|
|
2788
|
-
return InstrumentationLibrarySpans;
|
|
2789
|
-
})();
|
|
2790
|
-
v1.Span = (function () {
|
|
2791
|
-
/**
|
|
2792
|
-
* Properties of a Span.
|
|
2793
|
-
* @memberof opentelemetry.proto.trace.v1
|
|
2794
|
-
* @interface ISpan
|
|
2795
|
-
* @property {Uint8Array|null} [traceId] Span traceId
|
|
2796
|
-
* @property {Uint8Array|null} [spanId] Span spanId
|
|
2797
|
-
* @property {string|null} [traceState] Span traceState
|
|
2798
|
-
* @property {Uint8Array|null} [parentSpanId] Span parentSpanId
|
|
2799
|
-
* @property {string|null} [name] Span name
|
|
2800
|
-
* @property {opentelemetry.proto.trace.v1.Span.SpanKind|null} [kind] Span kind
|
|
2801
|
-
* @property {number|Long|null} [startTimeUnixNano] Span startTimeUnixNano
|
|
2802
|
-
* @property {number|Long|null} [endTimeUnixNano] Span endTimeUnixNano
|
|
2803
|
-
* @property {Array.<opentelemetry.proto.common.v1.IKeyValue>|null} [attributes] Span attributes
|
|
2804
|
-
* @property {number|null} [droppedAttributesCount] Span droppedAttributesCount
|
|
2805
|
-
* @property {Array.<opentelemetry.proto.trace.v1.Span.IEvent>|null} [events] Span events
|
|
2806
|
-
* @property {number|null} [droppedEventsCount] Span droppedEventsCount
|
|
2807
|
-
* @property {Array.<opentelemetry.proto.trace.v1.Span.ILink>|null} [links] Span links
|
|
2808
|
-
* @property {number|null} [droppedLinksCount] Span droppedLinksCount
|
|
2809
|
-
* @property {opentelemetry.proto.trace.v1.IStatus|null} [status] Span status
|
|
2810
|
-
*/
|
|
2811
|
-
/**
|
|
2812
|
-
* Constructs a new Span.
|
|
2813
|
-
* @memberof opentelemetry.proto.trace.v1
|
|
2814
|
-
* @classdesc Represents a Span.
|
|
2815
|
-
* @implements ISpan
|
|
2816
|
-
* @constructor
|
|
2817
|
-
* @param {opentelemetry.proto.trace.v1.ISpan=} [properties] Properties to set
|
|
2818
|
-
*/
|
|
2819
|
-
function Span(properties) {
|
|
2820
|
-
this.attributes = [];
|
|
2821
|
-
this.events = [];
|
|
2822
|
-
this.links = [];
|
|
2823
|
-
if (properties)
|
|
2824
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2825
|
-
if (properties[keys[i]] != null)
|
|
2826
|
-
this[keys[i]] = properties[keys[i]];
|
|
2827
|
-
}
|
|
2828
|
-
/**
|
|
2829
|
-
* Span traceId.
|
|
2830
|
-
* @member {Uint8Array|null|undefined} traceId
|
|
2831
|
-
* @memberof opentelemetry.proto.trace.v1.Span
|
|
2832
|
-
* @instance
|
|
2833
|
-
*/
|
|
2834
|
-
Span.prototype.traceId = null;
|
|
2385
|
+
Span.prototype.traceId = null;
|
|
2835
2386
|
/**
|
|
2836
2387
|
* Span spanId.
|
|
2837
2388
|
* @member {Uint8Array|null|undefined} spanId
|
|
@@ -4629,6 +4180,7 @@ $root.opentelemetry = (function () {
|
|
|
4629
4180
|
* Properties of an ExportTraceServiceResponse.
|
|
4630
4181
|
* @memberof opentelemetry.proto.collector.trace.v1
|
|
4631
4182
|
* @interface IExportTraceServiceResponse
|
|
4183
|
+
* @property {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess|null} [partialSuccess] ExportTraceServiceResponse partialSuccess
|
|
4632
4184
|
*/
|
|
4633
4185
|
/**
|
|
4634
4186
|
* Constructs a new ExportTraceServiceResponse.
|
|
@@ -4644,6 +4196,13 @@ $root.opentelemetry = (function () {
|
|
|
4644
4196
|
if (properties[keys[i]] != null)
|
|
4645
4197
|
this[keys[i]] = properties[keys[i]];
|
|
4646
4198
|
}
|
|
4199
|
+
/**
|
|
4200
|
+
* ExportTraceServiceResponse partialSuccess.
|
|
4201
|
+
* @member {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess|null|undefined} partialSuccess
|
|
4202
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse
|
|
4203
|
+
* @instance
|
|
4204
|
+
*/
|
|
4205
|
+
ExportTraceServiceResponse.prototype.partialSuccess = null;
|
|
4647
4206
|
/**
|
|
4648
4207
|
* Creates a new ExportTraceServiceResponse instance using the specified properties.
|
|
4649
4208
|
* @function create
|
|
@@ -4667,6 +4226,8 @@ $root.opentelemetry = (function () {
|
|
|
4667
4226
|
ExportTraceServiceResponse.encode = function encode(message, writer) {
|
|
4668
4227
|
if (!writer)
|
|
4669
4228
|
writer = $Writer.create();
|
|
4229
|
+
if (message.partialSuccess != null && Object.hasOwnProperty.call(message, "partialSuccess"))
|
|
4230
|
+
$root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(message.partialSuccess, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
4670
4231
|
return writer;
|
|
4671
4232
|
};
|
|
4672
4233
|
/**
|
|
@@ -4699,6 +4260,10 @@ $root.opentelemetry = (function () {
|
|
|
4699
4260
|
while (reader.pos < end) {
|
|
4700
4261
|
var tag = reader.uint32();
|
|
4701
4262
|
switch (tag >>> 3) {
|
|
4263
|
+
case 1: {
|
|
4264
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(reader, reader.uint32());
|
|
4265
|
+
break;
|
|
4266
|
+
}
|
|
4702
4267
|
default:
|
|
4703
4268
|
reader.skipType(tag & 7);
|
|
4704
4269
|
break;
|
|
@@ -4732,6 +4297,11 @@ $root.opentelemetry = (function () {
|
|
|
4732
4297
|
ExportTraceServiceResponse.verify = function verify(message) {
|
|
4733
4298
|
if (typeof message !== "object" || message === null)
|
|
4734
4299
|
return "object expected";
|
|
4300
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess")) {
|
|
4301
|
+
var error = $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(message.partialSuccess);
|
|
4302
|
+
if (error)
|
|
4303
|
+
return "partialSuccess." + error;
|
|
4304
|
+
}
|
|
4735
4305
|
return null;
|
|
4736
4306
|
};
|
|
4737
4307
|
/**
|
|
@@ -4745,7 +4315,13 @@ $root.opentelemetry = (function () {
|
|
|
4745
4315
|
ExportTraceServiceResponse.fromObject = function fromObject(object) {
|
|
4746
4316
|
if (object instanceof $root.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)
|
|
4747
4317
|
return object;
|
|
4748
|
-
|
|
4318
|
+
var message = new $root.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse();
|
|
4319
|
+
if (object.partialSuccess != null) {
|
|
4320
|
+
if (typeof object.partialSuccess !== "object")
|
|
4321
|
+
throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");
|
|
4322
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(object.partialSuccess);
|
|
4323
|
+
}
|
|
4324
|
+
return message;
|
|
4749
4325
|
};
|
|
4750
4326
|
/**
|
|
4751
4327
|
* Creates a plain object from an ExportTraceServiceResponse message. Also converts values to other types if specified.
|
|
@@ -4756,8 +4332,15 @@ $root.opentelemetry = (function () {
|
|
|
4756
4332
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4757
4333
|
* @returns {Object.<string,*>} Plain object
|
|
4758
4334
|
*/
|
|
4759
|
-
ExportTraceServiceResponse.toObject = function toObject() {
|
|
4760
|
-
|
|
4335
|
+
ExportTraceServiceResponse.toObject = function toObject(message, options) {
|
|
4336
|
+
if (!options)
|
|
4337
|
+
options = {};
|
|
4338
|
+
var object = {};
|
|
4339
|
+
if (options.defaults)
|
|
4340
|
+
object.partialSuccess = null;
|
|
4341
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess"))
|
|
4342
|
+
object.partialSuccess = $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(message.partialSuccess, options);
|
|
4343
|
+
return object;
|
|
4761
4344
|
};
|
|
4762
4345
|
/**
|
|
4763
4346
|
* Converts this ExportTraceServiceResponse to JSON.
|
|
@@ -4785,42 +4368,268 @@ $root.opentelemetry = (function () {
|
|
|
4785
4368
|
};
|
|
4786
4369
|
return ExportTraceServiceResponse;
|
|
4787
4370
|
})();
|
|
4788
|
-
|
|
4789
|
-
})();
|
|
4790
|
-
return trace;
|
|
4791
|
-
})();
|
|
4792
|
-
collector.metrics = (function () {
|
|
4793
|
-
/**
|
|
4794
|
-
* Namespace metrics.
|
|
4795
|
-
* @memberof opentelemetry.proto.collector
|
|
4796
|
-
* @namespace
|
|
4797
|
-
*/
|
|
4798
|
-
var metrics = {};
|
|
4799
|
-
metrics.v1 = (function () {
|
|
4800
|
-
/**
|
|
4801
|
-
* Namespace v1.
|
|
4802
|
-
* @memberof opentelemetry.proto.collector.metrics
|
|
4803
|
-
* @namespace
|
|
4804
|
-
*/
|
|
4805
|
-
var v1 = {};
|
|
4806
|
-
v1.MetricsService = (function () {
|
|
4371
|
+
v1.ExportTracePartialSuccess = (function () {
|
|
4807
4372
|
/**
|
|
4808
|
-
*
|
|
4809
|
-
* @memberof opentelemetry.proto.collector.
|
|
4810
|
-
* @
|
|
4811
|
-
* @
|
|
4812
|
-
* @
|
|
4813
|
-
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
4814
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
4815
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
4373
|
+
* Properties of an ExportTracePartialSuccess.
|
|
4374
|
+
* @memberof opentelemetry.proto.collector.trace.v1
|
|
4375
|
+
* @interface IExportTracePartialSuccess
|
|
4376
|
+
* @property {number|Long|null} [rejectedSpans] ExportTracePartialSuccess rejectedSpans
|
|
4377
|
+
* @property {string|null} [errorMessage] ExportTracePartialSuccess errorMessage
|
|
4816
4378
|
*/
|
|
4817
|
-
function MetricsService(rpcImpl, requestDelimited, responseDelimited) {
|
|
4818
|
-
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
4819
|
-
}
|
|
4820
|
-
(MetricsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetricsService;
|
|
4821
4379
|
/**
|
|
4822
|
-
*
|
|
4823
|
-
* @
|
|
4380
|
+
* Constructs a new ExportTracePartialSuccess.
|
|
4381
|
+
* @memberof opentelemetry.proto.collector.trace.v1
|
|
4382
|
+
* @classdesc Represents an ExportTracePartialSuccess.
|
|
4383
|
+
* @implements IExportTracePartialSuccess
|
|
4384
|
+
* @constructor
|
|
4385
|
+
* @param {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess=} [properties] Properties to set
|
|
4386
|
+
*/
|
|
4387
|
+
function ExportTracePartialSuccess(properties) {
|
|
4388
|
+
if (properties)
|
|
4389
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4390
|
+
if (properties[keys[i]] != null)
|
|
4391
|
+
this[keys[i]] = properties[keys[i]];
|
|
4392
|
+
}
|
|
4393
|
+
/**
|
|
4394
|
+
* ExportTracePartialSuccess rejectedSpans.
|
|
4395
|
+
* @member {number|Long|null|undefined} rejectedSpans
|
|
4396
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4397
|
+
* @instance
|
|
4398
|
+
*/
|
|
4399
|
+
ExportTracePartialSuccess.prototype.rejectedSpans = null;
|
|
4400
|
+
/**
|
|
4401
|
+
* ExportTracePartialSuccess errorMessage.
|
|
4402
|
+
* @member {string|null|undefined} errorMessage
|
|
4403
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4404
|
+
* @instance
|
|
4405
|
+
*/
|
|
4406
|
+
ExportTracePartialSuccess.prototype.errorMessage = null;
|
|
4407
|
+
/**
|
|
4408
|
+
* Creates a new ExportTracePartialSuccess instance using the specified properties.
|
|
4409
|
+
* @function create
|
|
4410
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4411
|
+
* @static
|
|
4412
|
+
* @param {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess=} [properties] Properties to set
|
|
4413
|
+
* @returns {opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess} ExportTracePartialSuccess instance
|
|
4414
|
+
*/
|
|
4415
|
+
ExportTracePartialSuccess.create = function create(properties) {
|
|
4416
|
+
return new ExportTracePartialSuccess(properties);
|
|
4417
|
+
};
|
|
4418
|
+
/**
|
|
4419
|
+
* Encodes the specified ExportTracePartialSuccess message. Does not implicitly {@link opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify|verify} messages.
|
|
4420
|
+
* @function encode
|
|
4421
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4422
|
+
* @static
|
|
4423
|
+
* @param {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess} message ExportTracePartialSuccess message or plain object to encode
|
|
4424
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4425
|
+
* @returns {$protobuf.Writer} Writer
|
|
4426
|
+
*/
|
|
4427
|
+
ExportTracePartialSuccess.encode = function encode(message, writer) {
|
|
4428
|
+
if (!writer)
|
|
4429
|
+
writer = $Writer.create();
|
|
4430
|
+
if (message.rejectedSpans != null && Object.hasOwnProperty.call(message, "rejectedSpans"))
|
|
4431
|
+
writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.rejectedSpans);
|
|
4432
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
4433
|
+
writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.errorMessage);
|
|
4434
|
+
return writer;
|
|
4435
|
+
};
|
|
4436
|
+
/**
|
|
4437
|
+
* Encodes the specified ExportTracePartialSuccess message, length delimited. Does not implicitly {@link opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify|verify} messages.
|
|
4438
|
+
* @function encodeDelimited
|
|
4439
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4440
|
+
* @static
|
|
4441
|
+
* @param {opentelemetry.proto.collector.trace.v1.IExportTracePartialSuccess} message ExportTracePartialSuccess message or plain object to encode
|
|
4442
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4443
|
+
* @returns {$protobuf.Writer} Writer
|
|
4444
|
+
*/
|
|
4445
|
+
ExportTracePartialSuccess.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4446
|
+
return this.encode(message, writer).ldelim();
|
|
4447
|
+
};
|
|
4448
|
+
/**
|
|
4449
|
+
* Decodes an ExportTracePartialSuccess message from the specified reader or buffer.
|
|
4450
|
+
* @function decode
|
|
4451
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4452
|
+
* @static
|
|
4453
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4454
|
+
* @param {number} [length] Message length if known beforehand
|
|
4455
|
+
* @returns {opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess} ExportTracePartialSuccess
|
|
4456
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4457
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4458
|
+
*/
|
|
4459
|
+
ExportTracePartialSuccess.decode = function decode(reader, length) {
|
|
4460
|
+
if (!(reader instanceof $Reader))
|
|
4461
|
+
reader = $Reader.create(reader);
|
|
4462
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess();
|
|
4463
|
+
while (reader.pos < end) {
|
|
4464
|
+
var tag = reader.uint32();
|
|
4465
|
+
switch (tag >>> 3) {
|
|
4466
|
+
case 1: {
|
|
4467
|
+
message.rejectedSpans = reader.int64();
|
|
4468
|
+
break;
|
|
4469
|
+
}
|
|
4470
|
+
case 2: {
|
|
4471
|
+
message.errorMessage = reader.string();
|
|
4472
|
+
break;
|
|
4473
|
+
}
|
|
4474
|
+
default:
|
|
4475
|
+
reader.skipType(tag & 7);
|
|
4476
|
+
break;
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
return message;
|
|
4480
|
+
};
|
|
4481
|
+
/**
|
|
4482
|
+
* Decodes an ExportTracePartialSuccess message from the specified reader or buffer, length delimited.
|
|
4483
|
+
* @function decodeDelimited
|
|
4484
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4485
|
+
* @static
|
|
4486
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4487
|
+
* @returns {opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess} ExportTracePartialSuccess
|
|
4488
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4489
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4490
|
+
*/
|
|
4491
|
+
ExportTracePartialSuccess.decodeDelimited = function decodeDelimited(reader) {
|
|
4492
|
+
if (!(reader instanceof $Reader))
|
|
4493
|
+
reader = new $Reader(reader);
|
|
4494
|
+
return this.decode(reader, reader.uint32());
|
|
4495
|
+
};
|
|
4496
|
+
/**
|
|
4497
|
+
* Verifies an ExportTracePartialSuccess message.
|
|
4498
|
+
* @function verify
|
|
4499
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4500
|
+
* @static
|
|
4501
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4502
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4503
|
+
*/
|
|
4504
|
+
ExportTracePartialSuccess.verify = function verify(message) {
|
|
4505
|
+
if (typeof message !== "object" || message === null)
|
|
4506
|
+
return "object expected";
|
|
4507
|
+
if (message.rejectedSpans != null && message.hasOwnProperty("rejectedSpans"))
|
|
4508
|
+
if (!$util.isInteger(message.rejectedSpans) && !(message.rejectedSpans && $util.isInteger(message.rejectedSpans.low) && $util.isInteger(message.rejectedSpans.high)))
|
|
4509
|
+
return "rejectedSpans: integer|Long expected";
|
|
4510
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
4511
|
+
if (!$util.isString(message.errorMessage))
|
|
4512
|
+
return "errorMessage: string expected";
|
|
4513
|
+
return null;
|
|
4514
|
+
};
|
|
4515
|
+
/**
|
|
4516
|
+
* Creates an ExportTracePartialSuccess message from a plain object. Also converts values to their respective internal types.
|
|
4517
|
+
* @function fromObject
|
|
4518
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4519
|
+
* @static
|
|
4520
|
+
* @param {Object.<string,*>} object Plain object
|
|
4521
|
+
* @returns {opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess} ExportTracePartialSuccess
|
|
4522
|
+
*/
|
|
4523
|
+
ExportTracePartialSuccess.fromObject = function fromObject(object) {
|
|
4524
|
+
if (object instanceof $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)
|
|
4525
|
+
return object;
|
|
4526
|
+
var message = new $root.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess();
|
|
4527
|
+
if (object.rejectedSpans != null)
|
|
4528
|
+
if ($util.Long)
|
|
4529
|
+
(message.rejectedSpans = $util.Long.fromValue(object.rejectedSpans)).unsigned = false;
|
|
4530
|
+
else if (typeof object.rejectedSpans === "string")
|
|
4531
|
+
message.rejectedSpans = parseInt(object.rejectedSpans, 10);
|
|
4532
|
+
else if (typeof object.rejectedSpans === "number")
|
|
4533
|
+
message.rejectedSpans = object.rejectedSpans;
|
|
4534
|
+
else if (typeof object.rejectedSpans === "object")
|
|
4535
|
+
message.rejectedSpans = new $util.LongBits(object.rejectedSpans.low >>> 0, object.rejectedSpans.high >>> 0).toNumber();
|
|
4536
|
+
if (object.errorMessage != null)
|
|
4537
|
+
message.errorMessage = String(object.errorMessage);
|
|
4538
|
+
return message;
|
|
4539
|
+
};
|
|
4540
|
+
/**
|
|
4541
|
+
* Creates a plain object from an ExportTracePartialSuccess message. Also converts values to other types if specified.
|
|
4542
|
+
* @function toObject
|
|
4543
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4544
|
+
* @static
|
|
4545
|
+
* @param {opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess} message ExportTracePartialSuccess
|
|
4546
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4547
|
+
* @returns {Object.<string,*>} Plain object
|
|
4548
|
+
*/
|
|
4549
|
+
ExportTracePartialSuccess.toObject = function toObject(message, options) {
|
|
4550
|
+
if (!options)
|
|
4551
|
+
options = {};
|
|
4552
|
+
var object = {};
|
|
4553
|
+
if (options.defaults) {
|
|
4554
|
+
if ($util.Long) {
|
|
4555
|
+
var long = new $util.Long(0, 0, false);
|
|
4556
|
+
object.rejectedSpans = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
4557
|
+
}
|
|
4558
|
+
else
|
|
4559
|
+
object.rejectedSpans = options.longs === String ? "0" : 0;
|
|
4560
|
+
object.errorMessage = "";
|
|
4561
|
+
}
|
|
4562
|
+
if (message.rejectedSpans != null && message.hasOwnProperty("rejectedSpans"))
|
|
4563
|
+
if (typeof message.rejectedSpans === "number")
|
|
4564
|
+
object.rejectedSpans = options.longs === String ? String(message.rejectedSpans) : message.rejectedSpans;
|
|
4565
|
+
else
|
|
4566
|
+
object.rejectedSpans = options.longs === String ? $util.Long.prototype.toString.call(message.rejectedSpans) : options.longs === Number ? new $util.LongBits(message.rejectedSpans.low >>> 0, message.rejectedSpans.high >>> 0).toNumber() : message.rejectedSpans;
|
|
4567
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
4568
|
+
object.errorMessage = message.errorMessage;
|
|
4569
|
+
return object;
|
|
4570
|
+
};
|
|
4571
|
+
/**
|
|
4572
|
+
* Converts this ExportTracePartialSuccess to JSON.
|
|
4573
|
+
* @function toJSON
|
|
4574
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4575
|
+
* @instance
|
|
4576
|
+
* @returns {Object.<string,*>} JSON object
|
|
4577
|
+
*/
|
|
4578
|
+
ExportTracePartialSuccess.prototype.toJSON = function toJSON() {
|
|
4579
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4580
|
+
};
|
|
4581
|
+
/**
|
|
4582
|
+
* Gets the default type url for ExportTracePartialSuccess
|
|
4583
|
+
* @function getTypeUrl
|
|
4584
|
+
* @memberof opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
4585
|
+
* @static
|
|
4586
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4587
|
+
* @returns {string} The default type url
|
|
4588
|
+
*/
|
|
4589
|
+
ExportTracePartialSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4590
|
+
if (typeUrlPrefix === undefined) {
|
|
4591
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
4592
|
+
}
|
|
4593
|
+
return typeUrlPrefix + "/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess";
|
|
4594
|
+
};
|
|
4595
|
+
return ExportTracePartialSuccess;
|
|
4596
|
+
})();
|
|
4597
|
+
return v1;
|
|
4598
|
+
})();
|
|
4599
|
+
return trace;
|
|
4600
|
+
})();
|
|
4601
|
+
collector.metrics = (function () {
|
|
4602
|
+
/**
|
|
4603
|
+
* Namespace metrics.
|
|
4604
|
+
* @memberof opentelemetry.proto.collector
|
|
4605
|
+
* @namespace
|
|
4606
|
+
*/
|
|
4607
|
+
var metrics = {};
|
|
4608
|
+
metrics.v1 = (function () {
|
|
4609
|
+
/**
|
|
4610
|
+
* Namespace v1.
|
|
4611
|
+
* @memberof opentelemetry.proto.collector.metrics
|
|
4612
|
+
* @namespace
|
|
4613
|
+
*/
|
|
4614
|
+
var v1 = {};
|
|
4615
|
+
v1.MetricsService = (function () {
|
|
4616
|
+
/**
|
|
4617
|
+
* Constructs a new MetricsService service.
|
|
4618
|
+
* @memberof opentelemetry.proto.collector.metrics.v1
|
|
4619
|
+
* @classdesc Represents a MetricsService
|
|
4620
|
+
* @extends $protobuf.rpc.Service
|
|
4621
|
+
* @constructor
|
|
4622
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
4623
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
4624
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
4625
|
+
*/
|
|
4626
|
+
function MetricsService(rpcImpl, requestDelimited, responseDelimited) {
|
|
4627
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
4628
|
+
}
|
|
4629
|
+
(MetricsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetricsService;
|
|
4630
|
+
/**
|
|
4631
|
+
* Creates new MetricsService service using the specified rpc implementation.
|
|
4632
|
+
* @function create
|
|
4824
4633
|
* @memberof opentelemetry.proto.collector.metrics.v1.MetricsService
|
|
4825
4634
|
* @static
|
|
4826
4635
|
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
@@ -5077,6 +4886,7 @@ $root.opentelemetry = (function () {
|
|
|
5077
4886
|
* Properties of an ExportMetricsServiceResponse.
|
|
5078
4887
|
* @memberof opentelemetry.proto.collector.metrics.v1
|
|
5079
4888
|
* @interface IExportMetricsServiceResponse
|
|
4889
|
+
* @property {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess|null} [partialSuccess] ExportMetricsServiceResponse partialSuccess
|
|
5080
4890
|
*/
|
|
5081
4891
|
/**
|
|
5082
4892
|
* Constructs a new ExportMetricsServiceResponse.
|
|
@@ -5092,6 +4902,13 @@ $root.opentelemetry = (function () {
|
|
|
5092
4902
|
if (properties[keys[i]] != null)
|
|
5093
4903
|
this[keys[i]] = properties[keys[i]];
|
|
5094
4904
|
}
|
|
4905
|
+
/**
|
|
4906
|
+
* ExportMetricsServiceResponse partialSuccess.
|
|
4907
|
+
* @member {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess|null|undefined} partialSuccess
|
|
4908
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
|
|
4909
|
+
* @instance
|
|
4910
|
+
*/
|
|
4911
|
+
ExportMetricsServiceResponse.prototype.partialSuccess = null;
|
|
5095
4912
|
/**
|
|
5096
4913
|
* Creates a new ExportMetricsServiceResponse instance using the specified properties.
|
|
5097
4914
|
* @function create
|
|
@@ -5115,6 +4932,8 @@ $root.opentelemetry = (function () {
|
|
|
5115
4932
|
ExportMetricsServiceResponse.encode = function encode(message, writer) {
|
|
5116
4933
|
if (!writer)
|
|
5117
4934
|
writer = $Writer.create();
|
|
4935
|
+
if (message.partialSuccess != null && Object.hasOwnProperty.call(message, "partialSuccess"))
|
|
4936
|
+
$root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(message.partialSuccess, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
5118
4937
|
return writer;
|
|
5119
4938
|
};
|
|
5120
4939
|
/**
|
|
@@ -5147,6 +4966,10 @@ $root.opentelemetry = (function () {
|
|
|
5147
4966
|
while (reader.pos < end) {
|
|
5148
4967
|
var tag = reader.uint32();
|
|
5149
4968
|
switch (tag >>> 3) {
|
|
4969
|
+
case 1: {
|
|
4970
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(reader, reader.uint32());
|
|
4971
|
+
break;
|
|
4972
|
+
}
|
|
5150
4973
|
default:
|
|
5151
4974
|
reader.skipType(tag & 7);
|
|
5152
4975
|
break;
|
|
@@ -5180,6 +5003,11 @@ $root.opentelemetry = (function () {
|
|
|
5180
5003
|
ExportMetricsServiceResponse.verify = function verify(message) {
|
|
5181
5004
|
if (typeof message !== "object" || message === null)
|
|
5182
5005
|
return "object expected";
|
|
5006
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess")) {
|
|
5007
|
+
var error = $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(message.partialSuccess);
|
|
5008
|
+
if (error)
|
|
5009
|
+
return "partialSuccess." + error;
|
|
5010
|
+
}
|
|
5183
5011
|
return null;
|
|
5184
5012
|
};
|
|
5185
5013
|
/**
|
|
@@ -5193,7 +5021,13 @@ $root.opentelemetry = (function () {
|
|
|
5193
5021
|
ExportMetricsServiceResponse.fromObject = function fromObject(object) {
|
|
5194
5022
|
if (object instanceof $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)
|
|
5195
5023
|
return object;
|
|
5196
|
-
|
|
5024
|
+
var message = new $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse();
|
|
5025
|
+
if (object.partialSuccess != null) {
|
|
5026
|
+
if (typeof object.partialSuccess !== "object")
|
|
5027
|
+
throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");
|
|
5028
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(object.partialSuccess);
|
|
5029
|
+
}
|
|
5030
|
+
return message;
|
|
5197
5031
|
};
|
|
5198
5032
|
/**
|
|
5199
5033
|
* Creates a plain object from an ExportMetricsServiceResponse message. Also converts values to other types if specified.
|
|
@@ -5204,8 +5038,15 @@ $root.opentelemetry = (function () {
|
|
|
5204
5038
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5205
5039
|
* @returns {Object.<string,*>} Plain object
|
|
5206
5040
|
*/
|
|
5207
|
-
ExportMetricsServiceResponse.toObject = function toObject() {
|
|
5208
|
-
|
|
5041
|
+
ExportMetricsServiceResponse.toObject = function toObject(message, options) {
|
|
5042
|
+
if (!options)
|
|
5043
|
+
options = {};
|
|
5044
|
+
var object = {};
|
|
5045
|
+
if (options.defaults)
|
|
5046
|
+
object.partialSuccess = null;
|
|
5047
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess"))
|
|
5048
|
+
object.partialSuccess = $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(message.partialSuccess, options);
|
|
5049
|
+
return object;
|
|
5209
5050
|
};
|
|
5210
5051
|
/**
|
|
5211
5052
|
* Converts this ExportMetricsServiceResponse to JSON.
|
|
@@ -5233,6 +5074,232 @@ $root.opentelemetry = (function () {
|
|
|
5233
5074
|
};
|
|
5234
5075
|
return ExportMetricsServiceResponse;
|
|
5235
5076
|
})();
|
|
5077
|
+
v1.ExportMetricsPartialSuccess = (function () {
|
|
5078
|
+
/**
|
|
5079
|
+
* Properties of an ExportMetricsPartialSuccess.
|
|
5080
|
+
* @memberof opentelemetry.proto.collector.metrics.v1
|
|
5081
|
+
* @interface IExportMetricsPartialSuccess
|
|
5082
|
+
* @property {number|Long|null} [rejectedDataPoints] ExportMetricsPartialSuccess rejectedDataPoints
|
|
5083
|
+
* @property {string|null} [errorMessage] ExportMetricsPartialSuccess errorMessage
|
|
5084
|
+
*/
|
|
5085
|
+
/**
|
|
5086
|
+
* Constructs a new ExportMetricsPartialSuccess.
|
|
5087
|
+
* @memberof opentelemetry.proto.collector.metrics.v1
|
|
5088
|
+
* @classdesc Represents an ExportMetricsPartialSuccess.
|
|
5089
|
+
* @implements IExportMetricsPartialSuccess
|
|
5090
|
+
* @constructor
|
|
5091
|
+
* @param {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess=} [properties] Properties to set
|
|
5092
|
+
*/
|
|
5093
|
+
function ExportMetricsPartialSuccess(properties) {
|
|
5094
|
+
if (properties)
|
|
5095
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5096
|
+
if (properties[keys[i]] != null)
|
|
5097
|
+
this[keys[i]] = properties[keys[i]];
|
|
5098
|
+
}
|
|
5099
|
+
/**
|
|
5100
|
+
* ExportMetricsPartialSuccess rejectedDataPoints.
|
|
5101
|
+
* @member {number|Long|null|undefined} rejectedDataPoints
|
|
5102
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5103
|
+
* @instance
|
|
5104
|
+
*/
|
|
5105
|
+
ExportMetricsPartialSuccess.prototype.rejectedDataPoints = null;
|
|
5106
|
+
/**
|
|
5107
|
+
* ExportMetricsPartialSuccess errorMessage.
|
|
5108
|
+
* @member {string|null|undefined} errorMessage
|
|
5109
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5110
|
+
* @instance
|
|
5111
|
+
*/
|
|
5112
|
+
ExportMetricsPartialSuccess.prototype.errorMessage = null;
|
|
5113
|
+
/**
|
|
5114
|
+
* Creates a new ExportMetricsPartialSuccess instance using the specified properties.
|
|
5115
|
+
* @function create
|
|
5116
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5117
|
+
* @static
|
|
5118
|
+
* @param {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess=} [properties] Properties to set
|
|
5119
|
+
* @returns {opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess} ExportMetricsPartialSuccess instance
|
|
5120
|
+
*/
|
|
5121
|
+
ExportMetricsPartialSuccess.create = function create(properties) {
|
|
5122
|
+
return new ExportMetricsPartialSuccess(properties);
|
|
5123
|
+
};
|
|
5124
|
+
/**
|
|
5125
|
+
* Encodes the specified ExportMetricsPartialSuccess message. Does not implicitly {@link opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify|verify} messages.
|
|
5126
|
+
* @function encode
|
|
5127
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5128
|
+
* @static
|
|
5129
|
+
* @param {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess} message ExportMetricsPartialSuccess message or plain object to encode
|
|
5130
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5131
|
+
* @returns {$protobuf.Writer} Writer
|
|
5132
|
+
*/
|
|
5133
|
+
ExportMetricsPartialSuccess.encode = function encode(message, writer) {
|
|
5134
|
+
if (!writer)
|
|
5135
|
+
writer = $Writer.create();
|
|
5136
|
+
if (message.rejectedDataPoints != null && Object.hasOwnProperty.call(message, "rejectedDataPoints"))
|
|
5137
|
+
writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.rejectedDataPoints);
|
|
5138
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
5139
|
+
writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.errorMessage);
|
|
5140
|
+
return writer;
|
|
5141
|
+
};
|
|
5142
|
+
/**
|
|
5143
|
+
* Encodes the specified ExportMetricsPartialSuccess message, length delimited. Does not implicitly {@link opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify|verify} messages.
|
|
5144
|
+
* @function encodeDelimited
|
|
5145
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5146
|
+
* @static
|
|
5147
|
+
* @param {opentelemetry.proto.collector.metrics.v1.IExportMetricsPartialSuccess} message ExportMetricsPartialSuccess message or plain object to encode
|
|
5148
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5149
|
+
* @returns {$protobuf.Writer} Writer
|
|
5150
|
+
*/
|
|
5151
|
+
ExportMetricsPartialSuccess.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5152
|
+
return this.encode(message, writer).ldelim();
|
|
5153
|
+
};
|
|
5154
|
+
/**
|
|
5155
|
+
* Decodes an ExportMetricsPartialSuccess message from the specified reader or buffer.
|
|
5156
|
+
* @function decode
|
|
5157
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5158
|
+
* @static
|
|
5159
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5160
|
+
* @param {number} [length] Message length if known beforehand
|
|
5161
|
+
* @returns {opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess} ExportMetricsPartialSuccess
|
|
5162
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5163
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5164
|
+
*/
|
|
5165
|
+
ExportMetricsPartialSuccess.decode = function decode(reader, length) {
|
|
5166
|
+
if (!(reader instanceof $Reader))
|
|
5167
|
+
reader = $Reader.create(reader);
|
|
5168
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess();
|
|
5169
|
+
while (reader.pos < end) {
|
|
5170
|
+
var tag = reader.uint32();
|
|
5171
|
+
switch (tag >>> 3) {
|
|
5172
|
+
case 1: {
|
|
5173
|
+
message.rejectedDataPoints = reader.int64();
|
|
5174
|
+
break;
|
|
5175
|
+
}
|
|
5176
|
+
case 2: {
|
|
5177
|
+
message.errorMessage = reader.string();
|
|
5178
|
+
break;
|
|
5179
|
+
}
|
|
5180
|
+
default:
|
|
5181
|
+
reader.skipType(tag & 7);
|
|
5182
|
+
break;
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
return message;
|
|
5186
|
+
};
|
|
5187
|
+
/**
|
|
5188
|
+
* Decodes an ExportMetricsPartialSuccess message from the specified reader or buffer, length delimited.
|
|
5189
|
+
* @function decodeDelimited
|
|
5190
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5191
|
+
* @static
|
|
5192
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5193
|
+
* @returns {opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess} ExportMetricsPartialSuccess
|
|
5194
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5195
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5196
|
+
*/
|
|
5197
|
+
ExportMetricsPartialSuccess.decodeDelimited = function decodeDelimited(reader) {
|
|
5198
|
+
if (!(reader instanceof $Reader))
|
|
5199
|
+
reader = new $Reader(reader);
|
|
5200
|
+
return this.decode(reader, reader.uint32());
|
|
5201
|
+
};
|
|
5202
|
+
/**
|
|
5203
|
+
* Verifies an ExportMetricsPartialSuccess message.
|
|
5204
|
+
* @function verify
|
|
5205
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5206
|
+
* @static
|
|
5207
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5208
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5209
|
+
*/
|
|
5210
|
+
ExportMetricsPartialSuccess.verify = function verify(message) {
|
|
5211
|
+
if (typeof message !== "object" || message === null)
|
|
5212
|
+
return "object expected";
|
|
5213
|
+
if (message.rejectedDataPoints != null && message.hasOwnProperty("rejectedDataPoints"))
|
|
5214
|
+
if (!$util.isInteger(message.rejectedDataPoints) && !(message.rejectedDataPoints && $util.isInteger(message.rejectedDataPoints.low) && $util.isInteger(message.rejectedDataPoints.high)))
|
|
5215
|
+
return "rejectedDataPoints: integer|Long expected";
|
|
5216
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
5217
|
+
if (!$util.isString(message.errorMessage))
|
|
5218
|
+
return "errorMessage: string expected";
|
|
5219
|
+
return null;
|
|
5220
|
+
};
|
|
5221
|
+
/**
|
|
5222
|
+
* Creates an ExportMetricsPartialSuccess message from a plain object. Also converts values to their respective internal types.
|
|
5223
|
+
* @function fromObject
|
|
5224
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5225
|
+
* @static
|
|
5226
|
+
* @param {Object.<string,*>} object Plain object
|
|
5227
|
+
* @returns {opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess} ExportMetricsPartialSuccess
|
|
5228
|
+
*/
|
|
5229
|
+
ExportMetricsPartialSuccess.fromObject = function fromObject(object) {
|
|
5230
|
+
if (object instanceof $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)
|
|
5231
|
+
return object;
|
|
5232
|
+
var message = new $root.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess();
|
|
5233
|
+
if (object.rejectedDataPoints != null)
|
|
5234
|
+
if ($util.Long)
|
|
5235
|
+
(message.rejectedDataPoints = $util.Long.fromValue(object.rejectedDataPoints)).unsigned = false;
|
|
5236
|
+
else if (typeof object.rejectedDataPoints === "string")
|
|
5237
|
+
message.rejectedDataPoints = parseInt(object.rejectedDataPoints, 10);
|
|
5238
|
+
else if (typeof object.rejectedDataPoints === "number")
|
|
5239
|
+
message.rejectedDataPoints = object.rejectedDataPoints;
|
|
5240
|
+
else if (typeof object.rejectedDataPoints === "object")
|
|
5241
|
+
message.rejectedDataPoints = new $util.LongBits(object.rejectedDataPoints.low >>> 0, object.rejectedDataPoints.high >>> 0).toNumber();
|
|
5242
|
+
if (object.errorMessage != null)
|
|
5243
|
+
message.errorMessage = String(object.errorMessage);
|
|
5244
|
+
return message;
|
|
5245
|
+
};
|
|
5246
|
+
/**
|
|
5247
|
+
* Creates a plain object from an ExportMetricsPartialSuccess message. Also converts values to other types if specified.
|
|
5248
|
+
* @function toObject
|
|
5249
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5250
|
+
* @static
|
|
5251
|
+
* @param {opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess} message ExportMetricsPartialSuccess
|
|
5252
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5253
|
+
* @returns {Object.<string,*>} Plain object
|
|
5254
|
+
*/
|
|
5255
|
+
ExportMetricsPartialSuccess.toObject = function toObject(message, options) {
|
|
5256
|
+
if (!options)
|
|
5257
|
+
options = {};
|
|
5258
|
+
var object = {};
|
|
5259
|
+
if (options.defaults) {
|
|
5260
|
+
if ($util.Long) {
|
|
5261
|
+
var long = new $util.Long(0, 0, false);
|
|
5262
|
+
object.rejectedDataPoints = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
5263
|
+
}
|
|
5264
|
+
else
|
|
5265
|
+
object.rejectedDataPoints = options.longs === String ? "0" : 0;
|
|
5266
|
+
object.errorMessage = "";
|
|
5267
|
+
}
|
|
5268
|
+
if (message.rejectedDataPoints != null && message.hasOwnProperty("rejectedDataPoints"))
|
|
5269
|
+
if (typeof message.rejectedDataPoints === "number")
|
|
5270
|
+
object.rejectedDataPoints = options.longs === String ? String(message.rejectedDataPoints) : message.rejectedDataPoints;
|
|
5271
|
+
else
|
|
5272
|
+
object.rejectedDataPoints = options.longs === String ? $util.Long.prototype.toString.call(message.rejectedDataPoints) : options.longs === Number ? new $util.LongBits(message.rejectedDataPoints.low >>> 0, message.rejectedDataPoints.high >>> 0).toNumber() : message.rejectedDataPoints;
|
|
5273
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
5274
|
+
object.errorMessage = message.errorMessage;
|
|
5275
|
+
return object;
|
|
5276
|
+
};
|
|
5277
|
+
/**
|
|
5278
|
+
* Converts this ExportMetricsPartialSuccess to JSON.
|
|
5279
|
+
* @function toJSON
|
|
5280
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5281
|
+
* @instance
|
|
5282
|
+
* @returns {Object.<string,*>} JSON object
|
|
5283
|
+
*/
|
|
5284
|
+
ExportMetricsPartialSuccess.prototype.toJSON = function toJSON() {
|
|
5285
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5286
|
+
};
|
|
5287
|
+
/**
|
|
5288
|
+
* Gets the default type url for ExportMetricsPartialSuccess
|
|
5289
|
+
* @function getTypeUrl
|
|
5290
|
+
* @memberof opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
5291
|
+
* @static
|
|
5292
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5293
|
+
* @returns {string} The default type url
|
|
5294
|
+
*/
|
|
5295
|
+
ExportMetricsPartialSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
5296
|
+
if (typeUrlPrefix === undefined) {
|
|
5297
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
5298
|
+
}
|
|
5299
|
+
return typeUrlPrefix + "/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess";
|
|
5300
|
+
};
|
|
5301
|
+
return ExportMetricsPartialSuccess;
|
|
5302
|
+
})();
|
|
5236
5303
|
return v1;
|
|
5237
5304
|
})();
|
|
5238
5305
|
return metrics;
|
|
@@ -5525,6 +5592,7 @@ $root.opentelemetry = (function () {
|
|
|
5525
5592
|
* Properties of an ExportLogsServiceResponse.
|
|
5526
5593
|
* @memberof opentelemetry.proto.collector.logs.v1
|
|
5527
5594
|
* @interface IExportLogsServiceResponse
|
|
5595
|
+
* @property {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess|null} [partialSuccess] ExportLogsServiceResponse partialSuccess
|
|
5528
5596
|
*/
|
|
5529
5597
|
/**
|
|
5530
5598
|
* Constructs a new ExportLogsServiceResponse.
|
|
@@ -5540,6 +5608,13 @@ $root.opentelemetry = (function () {
|
|
|
5540
5608
|
if (properties[keys[i]] != null)
|
|
5541
5609
|
this[keys[i]] = properties[keys[i]];
|
|
5542
5610
|
}
|
|
5611
|
+
/**
|
|
5612
|
+
* ExportLogsServiceResponse partialSuccess.
|
|
5613
|
+
* @member {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess|null|undefined} partialSuccess
|
|
5614
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
|
|
5615
|
+
* @instance
|
|
5616
|
+
*/
|
|
5617
|
+
ExportLogsServiceResponse.prototype.partialSuccess = null;
|
|
5543
5618
|
/**
|
|
5544
5619
|
* Creates a new ExportLogsServiceResponse instance using the specified properties.
|
|
5545
5620
|
* @function create
|
|
@@ -5563,6 +5638,8 @@ $root.opentelemetry = (function () {
|
|
|
5563
5638
|
ExportLogsServiceResponse.encode = function encode(message, writer) {
|
|
5564
5639
|
if (!writer)
|
|
5565
5640
|
writer = $Writer.create();
|
|
5641
|
+
if (message.partialSuccess != null && Object.hasOwnProperty.call(message, "partialSuccess"))
|
|
5642
|
+
$root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(message.partialSuccess, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
5566
5643
|
return writer;
|
|
5567
5644
|
};
|
|
5568
5645
|
/**
|
|
@@ -5595,6 +5672,10 @@ $root.opentelemetry = (function () {
|
|
|
5595
5672
|
while (reader.pos < end) {
|
|
5596
5673
|
var tag = reader.uint32();
|
|
5597
5674
|
switch (tag >>> 3) {
|
|
5675
|
+
case 1: {
|
|
5676
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(reader, reader.uint32());
|
|
5677
|
+
break;
|
|
5678
|
+
}
|
|
5598
5679
|
default:
|
|
5599
5680
|
reader.skipType(tag & 7);
|
|
5600
5681
|
break;
|
|
@@ -5628,6 +5709,11 @@ $root.opentelemetry = (function () {
|
|
|
5628
5709
|
ExportLogsServiceResponse.verify = function verify(message) {
|
|
5629
5710
|
if (typeof message !== "object" || message === null)
|
|
5630
5711
|
return "object expected";
|
|
5712
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess")) {
|
|
5713
|
+
var error = $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(message.partialSuccess);
|
|
5714
|
+
if (error)
|
|
5715
|
+
return "partialSuccess." + error;
|
|
5716
|
+
}
|
|
5631
5717
|
return null;
|
|
5632
5718
|
};
|
|
5633
5719
|
/**
|
|
@@ -5641,7 +5727,13 @@ $root.opentelemetry = (function () {
|
|
|
5641
5727
|
ExportLogsServiceResponse.fromObject = function fromObject(object) {
|
|
5642
5728
|
if (object instanceof $root.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)
|
|
5643
5729
|
return object;
|
|
5644
|
-
|
|
5730
|
+
var message = new $root.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse();
|
|
5731
|
+
if (object.partialSuccess != null) {
|
|
5732
|
+
if (typeof object.partialSuccess !== "object")
|
|
5733
|
+
throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");
|
|
5734
|
+
message.partialSuccess = $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(object.partialSuccess);
|
|
5735
|
+
}
|
|
5736
|
+
return message;
|
|
5645
5737
|
};
|
|
5646
5738
|
/**
|
|
5647
5739
|
* Creates a plain object from an ExportLogsServiceResponse message. Also converts values to other types if specified.
|
|
@@ -5652,34 +5744,267 @@ $root.opentelemetry = (function () {
|
|
|
5652
5744
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5653
5745
|
* @returns {Object.<string,*>} Plain object
|
|
5654
5746
|
*/
|
|
5655
|
-
ExportLogsServiceResponse.toObject = function toObject() {
|
|
5656
|
-
|
|
5747
|
+
ExportLogsServiceResponse.toObject = function toObject(message, options) {
|
|
5748
|
+
if (!options)
|
|
5749
|
+
options = {};
|
|
5750
|
+
var object = {};
|
|
5751
|
+
if (options.defaults)
|
|
5752
|
+
object.partialSuccess = null;
|
|
5753
|
+
if (message.partialSuccess != null && message.hasOwnProperty("partialSuccess"))
|
|
5754
|
+
object.partialSuccess = $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(message.partialSuccess, options);
|
|
5755
|
+
return object;
|
|
5657
5756
|
};
|
|
5658
5757
|
/**
|
|
5659
5758
|
* Converts this ExportLogsServiceResponse to JSON.
|
|
5660
5759
|
* @function toJSON
|
|
5661
|
-
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
|
|
5760
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
|
|
5761
|
+
* @instance
|
|
5762
|
+
* @returns {Object.<string,*>} JSON object
|
|
5763
|
+
*/
|
|
5764
|
+
ExportLogsServiceResponse.prototype.toJSON = function toJSON() {
|
|
5765
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5766
|
+
};
|
|
5767
|
+
/**
|
|
5768
|
+
* Gets the default type url for ExportLogsServiceResponse
|
|
5769
|
+
* @function getTypeUrl
|
|
5770
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse
|
|
5771
|
+
* @static
|
|
5772
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5773
|
+
* @returns {string} The default type url
|
|
5774
|
+
*/
|
|
5775
|
+
ExportLogsServiceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
5776
|
+
if (typeUrlPrefix === undefined) {
|
|
5777
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
5778
|
+
}
|
|
5779
|
+
return typeUrlPrefix + "/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse";
|
|
5780
|
+
};
|
|
5781
|
+
return ExportLogsServiceResponse;
|
|
5782
|
+
})();
|
|
5783
|
+
v1.ExportLogsPartialSuccess = (function () {
|
|
5784
|
+
/**
|
|
5785
|
+
* Properties of an ExportLogsPartialSuccess.
|
|
5786
|
+
* @memberof opentelemetry.proto.collector.logs.v1
|
|
5787
|
+
* @interface IExportLogsPartialSuccess
|
|
5788
|
+
* @property {number|Long|null} [rejectedLogRecords] ExportLogsPartialSuccess rejectedLogRecords
|
|
5789
|
+
* @property {string|null} [errorMessage] ExportLogsPartialSuccess errorMessage
|
|
5790
|
+
*/
|
|
5791
|
+
/**
|
|
5792
|
+
* Constructs a new ExportLogsPartialSuccess.
|
|
5793
|
+
* @memberof opentelemetry.proto.collector.logs.v1
|
|
5794
|
+
* @classdesc Represents an ExportLogsPartialSuccess.
|
|
5795
|
+
* @implements IExportLogsPartialSuccess
|
|
5796
|
+
* @constructor
|
|
5797
|
+
* @param {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess=} [properties] Properties to set
|
|
5798
|
+
*/
|
|
5799
|
+
function ExportLogsPartialSuccess(properties) {
|
|
5800
|
+
if (properties)
|
|
5801
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5802
|
+
if (properties[keys[i]] != null)
|
|
5803
|
+
this[keys[i]] = properties[keys[i]];
|
|
5804
|
+
}
|
|
5805
|
+
/**
|
|
5806
|
+
* ExportLogsPartialSuccess rejectedLogRecords.
|
|
5807
|
+
* @member {number|Long|null|undefined} rejectedLogRecords
|
|
5808
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5809
|
+
* @instance
|
|
5810
|
+
*/
|
|
5811
|
+
ExportLogsPartialSuccess.prototype.rejectedLogRecords = null;
|
|
5812
|
+
/**
|
|
5813
|
+
* ExportLogsPartialSuccess errorMessage.
|
|
5814
|
+
* @member {string|null|undefined} errorMessage
|
|
5815
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5816
|
+
* @instance
|
|
5817
|
+
*/
|
|
5818
|
+
ExportLogsPartialSuccess.prototype.errorMessage = null;
|
|
5819
|
+
/**
|
|
5820
|
+
* Creates a new ExportLogsPartialSuccess instance using the specified properties.
|
|
5821
|
+
* @function create
|
|
5822
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5823
|
+
* @static
|
|
5824
|
+
* @param {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess=} [properties] Properties to set
|
|
5825
|
+
* @returns {opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess} ExportLogsPartialSuccess instance
|
|
5826
|
+
*/
|
|
5827
|
+
ExportLogsPartialSuccess.create = function create(properties) {
|
|
5828
|
+
return new ExportLogsPartialSuccess(properties);
|
|
5829
|
+
};
|
|
5830
|
+
/**
|
|
5831
|
+
* Encodes the specified ExportLogsPartialSuccess message. Does not implicitly {@link opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify|verify} messages.
|
|
5832
|
+
* @function encode
|
|
5833
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5834
|
+
* @static
|
|
5835
|
+
* @param {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess} message ExportLogsPartialSuccess message or plain object to encode
|
|
5836
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5837
|
+
* @returns {$protobuf.Writer} Writer
|
|
5838
|
+
*/
|
|
5839
|
+
ExportLogsPartialSuccess.encode = function encode(message, writer) {
|
|
5840
|
+
if (!writer)
|
|
5841
|
+
writer = $Writer.create();
|
|
5842
|
+
if (message.rejectedLogRecords != null && Object.hasOwnProperty.call(message, "rejectedLogRecords"))
|
|
5843
|
+
writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.rejectedLogRecords);
|
|
5844
|
+
if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage"))
|
|
5845
|
+
writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.errorMessage);
|
|
5846
|
+
return writer;
|
|
5847
|
+
};
|
|
5848
|
+
/**
|
|
5849
|
+
* Encodes the specified ExportLogsPartialSuccess message, length delimited. Does not implicitly {@link opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify|verify} messages.
|
|
5850
|
+
* @function encodeDelimited
|
|
5851
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5852
|
+
* @static
|
|
5853
|
+
* @param {opentelemetry.proto.collector.logs.v1.IExportLogsPartialSuccess} message ExportLogsPartialSuccess message or plain object to encode
|
|
5854
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5855
|
+
* @returns {$protobuf.Writer} Writer
|
|
5856
|
+
*/
|
|
5857
|
+
ExportLogsPartialSuccess.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5858
|
+
return this.encode(message, writer).ldelim();
|
|
5859
|
+
};
|
|
5860
|
+
/**
|
|
5861
|
+
* Decodes an ExportLogsPartialSuccess message from the specified reader or buffer.
|
|
5862
|
+
* @function decode
|
|
5863
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5864
|
+
* @static
|
|
5865
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5866
|
+
* @param {number} [length] Message length if known beforehand
|
|
5867
|
+
* @returns {opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess} ExportLogsPartialSuccess
|
|
5868
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5869
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5870
|
+
*/
|
|
5871
|
+
ExportLogsPartialSuccess.decode = function decode(reader, length) {
|
|
5872
|
+
if (!(reader instanceof $Reader))
|
|
5873
|
+
reader = $Reader.create(reader);
|
|
5874
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess();
|
|
5875
|
+
while (reader.pos < end) {
|
|
5876
|
+
var tag = reader.uint32();
|
|
5877
|
+
switch (tag >>> 3) {
|
|
5878
|
+
case 1: {
|
|
5879
|
+
message.rejectedLogRecords = reader.int64();
|
|
5880
|
+
break;
|
|
5881
|
+
}
|
|
5882
|
+
case 2: {
|
|
5883
|
+
message.errorMessage = reader.string();
|
|
5884
|
+
break;
|
|
5885
|
+
}
|
|
5886
|
+
default:
|
|
5887
|
+
reader.skipType(tag & 7);
|
|
5888
|
+
break;
|
|
5889
|
+
}
|
|
5890
|
+
}
|
|
5891
|
+
return message;
|
|
5892
|
+
};
|
|
5893
|
+
/**
|
|
5894
|
+
* Decodes an ExportLogsPartialSuccess message from the specified reader or buffer, length delimited.
|
|
5895
|
+
* @function decodeDelimited
|
|
5896
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5897
|
+
* @static
|
|
5898
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5899
|
+
* @returns {opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess} ExportLogsPartialSuccess
|
|
5900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5902
|
+
*/
|
|
5903
|
+
ExportLogsPartialSuccess.decodeDelimited = function decodeDelimited(reader) {
|
|
5904
|
+
if (!(reader instanceof $Reader))
|
|
5905
|
+
reader = new $Reader(reader);
|
|
5906
|
+
return this.decode(reader, reader.uint32());
|
|
5907
|
+
};
|
|
5908
|
+
/**
|
|
5909
|
+
* Verifies an ExportLogsPartialSuccess message.
|
|
5910
|
+
* @function verify
|
|
5911
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5912
|
+
* @static
|
|
5913
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5914
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5915
|
+
*/
|
|
5916
|
+
ExportLogsPartialSuccess.verify = function verify(message) {
|
|
5917
|
+
if (typeof message !== "object" || message === null)
|
|
5918
|
+
return "object expected";
|
|
5919
|
+
if (message.rejectedLogRecords != null && message.hasOwnProperty("rejectedLogRecords"))
|
|
5920
|
+
if (!$util.isInteger(message.rejectedLogRecords) && !(message.rejectedLogRecords && $util.isInteger(message.rejectedLogRecords.low) && $util.isInteger(message.rejectedLogRecords.high)))
|
|
5921
|
+
return "rejectedLogRecords: integer|Long expected";
|
|
5922
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
5923
|
+
if (!$util.isString(message.errorMessage))
|
|
5924
|
+
return "errorMessage: string expected";
|
|
5925
|
+
return null;
|
|
5926
|
+
};
|
|
5927
|
+
/**
|
|
5928
|
+
* Creates an ExportLogsPartialSuccess message from a plain object. Also converts values to their respective internal types.
|
|
5929
|
+
* @function fromObject
|
|
5930
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5931
|
+
* @static
|
|
5932
|
+
* @param {Object.<string,*>} object Plain object
|
|
5933
|
+
* @returns {opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess} ExportLogsPartialSuccess
|
|
5934
|
+
*/
|
|
5935
|
+
ExportLogsPartialSuccess.fromObject = function fromObject(object) {
|
|
5936
|
+
if (object instanceof $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)
|
|
5937
|
+
return object;
|
|
5938
|
+
var message = new $root.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess();
|
|
5939
|
+
if (object.rejectedLogRecords != null)
|
|
5940
|
+
if ($util.Long)
|
|
5941
|
+
(message.rejectedLogRecords = $util.Long.fromValue(object.rejectedLogRecords)).unsigned = false;
|
|
5942
|
+
else if (typeof object.rejectedLogRecords === "string")
|
|
5943
|
+
message.rejectedLogRecords = parseInt(object.rejectedLogRecords, 10);
|
|
5944
|
+
else if (typeof object.rejectedLogRecords === "number")
|
|
5945
|
+
message.rejectedLogRecords = object.rejectedLogRecords;
|
|
5946
|
+
else if (typeof object.rejectedLogRecords === "object")
|
|
5947
|
+
message.rejectedLogRecords = new $util.LongBits(object.rejectedLogRecords.low >>> 0, object.rejectedLogRecords.high >>> 0).toNumber();
|
|
5948
|
+
if (object.errorMessage != null)
|
|
5949
|
+
message.errorMessage = String(object.errorMessage);
|
|
5950
|
+
return message;
|
|
5951
|
+
};
|
|
5952
|
+
/**
|
|
5953
|
+
* Creates a plain object from an ExportLogsPartialSuccess message. Also converts values to other types if specified.
|
|
5954
|
+
* @function toObject
|
|
5955
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5956
|
+
* @static
|
|
5957
|
+
* @param {opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess} message ExportLogsPartialSuccess
|
|
5958
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5959
|
+
* @returns {Object.<string,*>} Plain object
|
|
5960
|
+
*/
|
|
5961
|
+
ExportLogsPartialSuccess.toObject = function toObject(message, options) {
|
|
5962
|
+
if (!options)
|
|
5963
|
+
options = {};
|
|
5964
|
+
var object = {};
|
|
5965
|
+
if (options.defaults) {
|
|
5966
|
+
if ($util.Long) {
|
|
5967
|
+
var long = new $util.Long(0, 0, false);
|
|
5968
|
+
object.rejectedLogRecords = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
5969
|
+
}
|
|
5970
|
+
else
|
|
5971
|
+
object.rejectedLogRecords = options.longs === String ? "0" : 0;
|
|
5972
|
+
object.errorMessage = "";
|
|
5973
|
+
}
|
|
5974
|
+
if (message.rejectedLogRecords != null && message.hasOwnProperty("rejectedLogRecords"))
|
|
5975
|
+
if (typeof message.rejectedLogRecords === "number")
|
|
5976
|
+
object.rejectedLogRecords = options.longs === String ? String(message.rejectedLogRecords) : message.rejectedLogRecords;
|
|
5977
|
+
else
|
|
5978
|
+
object.rejectedLogRecords = options.longs === String ? $util.Long.prototype.toString.call(message.rejectedLogRecords) : options.longs === Number ? new $util.LongBits(message.rejectedLogRecords.low >>> 0, message.rejectedLogRecords.high >>> 0).toNumber() : message.rejectedLogRecords;
|
|
5979
|
+
if (message.errorMessage != null && message.hasOwnProperty("errorMessage"))
|
|
5980
|
+
object.errorMessage = message.errorMessage;
|
|
5981
|
+
return object;
|
|
5982
|
+
};
|
|
5983
|
+
/**
|
|
5984
|
+
* Converts this ExportLogsPartialSuccess to JSON.
|
|
5985
|
+
* @function toJSON
|
|
5986
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5662
5987
|
* @instance
|
|
5663
5988
|
* @returns {Object.<string,*>} JSON object
|
|
5664
5989
|
*/
|
|
5665
|
-
|
|
5990
|
+
ExportLogsPartialSuccess.prototype.toJSON = function toJSON() {
|
|
5666
5991
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5667
5992
|
};
|
|
5668
5993
|
/**
|
|
5669
|
-
* Gets the default type url for
|
|
5994
|
+
* Gets the default type url for ExportLogsPartialSuccess
|
|
5670
5995
|
* @function getTypeUrl
|
|
5671
|
-
* @memberof opentelemetry.proto.collector.logs.v1.
|
|
5996
|
+
* @memberof opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess
|
|
5672
5997
|
* @static
|
|
5673
5998
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5674
5999
|
* @returns {string} The default type url
|
|
5675
6000
|
*/
|
|
5676
|
-
|
|
6001
|
+
ExportLogsPartialSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
5677
6002
|
if (typeUrlPrefix === undefined) {
|
|
5678
6003
|
typeUrlPrefix = "type.googleapis.com";
|
|
5679
6004
|
}
|
|
5680
|
-
return typeUrlPrefix + "/opentelemetry.proto.collector.logs.v1.
|
|
6005
|
+
return typeUrlPrefix + "/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess";
|
|
5681
6006
|
};
|
|
5682
|
-
return
|
|
6007
|
+
return ExportLogsPartialSuccess;
|
|
5683
6008
|
})();
|
|
5684
6009
|
return v1;
|
|
5685
6010
|
})();
|
|
@@ -5917,7 +6242,6 @@ $root.opentelemetry = (function () {
|
|
|
5917
6242
|
* @interface IResourceMetrics
|
|
5918
6243
|
* @property {opentelemetry.proto.resource.v1.IResource|null} [resource] ResourceMetrics resource
|
|
5919
6244
|
* @property {Array.<opentelemetry.proto.metrics.v1.IScopeMetrics>|null} [scopeMetrics] ResourceMetrics scopeMetrics
|
|
5920
|
-
* @property {Array.<opentelemetry.proto.metrics.v1.IInstrumentationLibraryMetrics>|null} [instrumentationLibraryMetrics] ResourceMetrics instrumentationLibraryMetrics
|
|
5921
6245
|
* @property {string|null} [schemaUrl] ResourceMetrics schemaUrl
|
|
5922
6246
|
*/
|
|
5923
6247
|
/**
|
|
@@ -5930,7 +6254,6 @@ $root.opentelemetry = (function () {
|
|
|
5930
6254
|
*/
|
|
5931
6255
|
function ResourceMetrics(properties) {
|
|
5932
6256
|
this.scopeMetrics = [];
|
|
5933
|
-
this.instrumentationLibraryMetrics = [];
|
|
5934
6257
|
if (properties)
|
|
5935
6258
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5936
6259
|
if (properties[keys[i]] != null)
|
|
@@ -5950,13 +6273,6 @@ $root.opentelemetry = (function () {
|
|
|
5950
6273
|
* @instance
|
|
5951
6274
|
*/
|
|
5952
6275
|
ResourceMetrics.prototype.scopeMetrics = $util.emptyArray;
|
|
5953
|
-
/**
|
|
5954
|
-
* ResourceMetrics instrumentationLibraryMetrics.
|
|
5955
|
-
* @member {Array.<opentelemetry.proto.metrics.v1.IInstrumentationLibraryMetrics>} instrumentationLibraryMetrics
|
|
5956
|
-
* @memberof opentelemetry.proto.metrics.v1.ResourceMetrics
|
|
5957
|
-
* @instance
|
|
5958
|
-
*/
|
|
5959
|
-
ResourceMetrics.prototype.instrumentationLibraryMetrics = $util.emptyArray;
|
|
5960
6276
|
/**
|
|
5961
6277
|
* ResourceMetrics schemaUrl.
|
|
5962
6278
|
* @member {string|null|undefined} schemaUrl
|
|
@@ -5994,9 +6310,6 @@ $root.opentelemetry = (function () {
|
|
|
5994
6310
|
$root.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(message.scopeMetrics[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
5995
6311
|
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
5996
6312
|
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
5997
|
-
if (message.instrumentationLibraryMetrics != null && message.instrumentationLibraryMetrics.length)
|
|
5998
|
-
for (var i = 0; i < message.instrumentationLibraryMetrics.length; ++i)
|
|
5999
|
-
$root.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics.encode(message.instrumentationLibraryMetrics[i], writer.uint32(/* id 1000, wireType 2 =*/ 8002).fork()).ldelim();
|
|
6000
6313
|
return writer;
|
|
6001
6314
|
};
|
|
6002
6315
|
/**
|
|
@@ -6039,12 +6352,6 @@ $root.opentelemetry = (function () {
|
|
|
6039
6352
|
message.scopeMetrics.push($root.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(reader, reader.uint32()));
|
|
6040
6353
|
break;
|
|
6041
6354
|
}
|
|
6042
|
-
case 1000: {
|
|
6043
|
-
if (!(message.instrumentationLibraryMetrics && message.instrumentationLibraryMetrics.length))
|
|
6044
|
-
message.instrumentationLibraryMetrics = [];
|
|
6045
|
-
message.instrumentationLibraryMetrics.push($root.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics.decode(reader, reader.uint32()));
|
|
6046
|
-
break;
|
|
6047
|
-
}
|
|
6048
6355
|
case 3: {
|
|
6049
6356
|
message.schemaUrl = reader.string();
|
|
6050
6357
|
break;
|
|
@@ -6096,15 +6403,6 @@ $root.opentelemetry = (function () {
|
|
|
6096
6403
|
return "scopeMetrics." + error;
|
|
6097
6404
|
}
|
|
6098
6405
|
}
|
|
6099
|
-
if (message.instrumentationLibraryMetrics != null && message.hasOwnProperty("instrumentationLibraryMetrics")) {
|
|
6100
|
-
if (!Array.isArray(message.instrumentationLibraryMetrics))
|
|
6101
|
-
return "instrumentationLibraryMetrics: array expected";
|
|
6102
|
-
for (var i = 0; i < message.instrumentationLibraryMetrics.length; ++i) {
|
|
6103
|
-
var error = $root.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics.verify(message.instrumentationLibraryMetrics[i]);
|
|
6104
|
-
if (error)
|
|
6105
|
-
return "instrumentationLibraryMetrics." + error;
|
|
6106
|
-
}
|
|
6107
|
-
}
|
|
6108
6406
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
6109
6407
|
if (!$util.isString(message.schemaUrl))
|
|
6110
6408
|
return "schemaUrl: string expected";
|
|
@@ -6137,16 +6435,6 @@ $root.opentelemetry = (function () {
|
|
|
6137
6435
|
message.scopeMetrics[i] = $root.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(object.scopeMetrics[i]);
|
|
6138
6436
|
}
|
|
6139
6437
|
}
|
|
6140
|
-
if (object.instrumentationLibraryMetrics) {
|
|
6141
|
-
if (!Array.isArray(object.instrumentationLibraryMetrics))
|
|
6142
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.instrumentationLibraryMetrics: array expected");
|
|
6143
|
-
message.instrumentationLibraryMetrics = [];
|
|
6144
|
-
for (var i = 0; i < object.instrumentationLibraryMetrics.length; ++i) {
|
|
6145
|
-
if (typeof object.instrumentationLibraryMetrics[i] !== "object")
|
|
6146
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.instrumentationLibraryMetrics: object expected");
|
|
6147
|
-
message.instrumentationLibraryMetrics[i] = $root.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics.fromObject(object.instrumentationLibraryMetrics[i]);
|
|
6148
|
-
}
|
|
6149
|
-
}
|
|
6150
6438
|
if (object.schemaUrl != null)
|
|
6151
6439
|
message.schemaUrl = String(object.schemaUrl);
|
|
6152
6440
|
return message;
|
|
@@ -6164,10 +6452,8 @@ $root.opentelemetry = (function () {
|
|
|
6164
6452
|
if (!options)
|
|
6165
6453
|
options = {};
|
|
6166
6454
|
var object = {};
|
|
6167
|
-
if (options.arrays || options.defaults)
|
|
6455
|
+
if (options.arrays || options.defaults)
|
|
6168
6456
|
object.scopeMetrics = [];
|
|
6169
|
-
object.instrumentationLibraryMetrics = [];
|
|
6170
|
-
}
|
|
6171
6457
|
if (options.defaults) {
|
|
6172
6458
|
object.resource = null;
|
|
6173
6459
|
object.schemaUrl = "";
|
|
@@ -6181,11 +6467,6 @@ $root.opentelemetry = (function () {
|
|
|
6181
6467
|
}
|
|
6182
6468
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
6183
6469
|
object.schemaUrl = message.schemaUrl;
|
|
6184
|
-
if (message.instrumentationLibraryMetrics && message.instrumentationLibraryMetrics.length) {
|
|
6185
|
-
object.instrumentationLibraryMetrics = [];
|
|
6186
|
-
for (var j = 0; j < message.instrumentationLibraryMetrics.length; ++j)
|
|
6187
|
-
object.instrumentationLibraryMetrics[j] = $root.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics.toObject(message.instrumentationLibraryMetrics[j], options);
|
|
6188
|
-
}
|
|
6189
6470
|
return object;
|
|
6190
6471
|
};
|
|
6191
6472
|
/**
|
|
@@ -6268,282 +6549,22 @@ $root.opentelemetry = (function () {
|
|
|
6268
6549
|
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics instance
|
|
6269
6550
|
*/
|
|
6270
6551
|
ScopeMetrics.create = function create(properties) {
|
|
6271
|
-
return new ScopeMetrics(properties);
|
|
6272
|
-
};
|
|
6273
|
-
/**
|
|
6274
|
-
* Encodes the specified ScopeMetrics message. Does not implicitly {@link opentelemetry.proto.metrics.v1.ScopeMetrics.verify|verify} messages.
|
|
6275
|
-
* @function encode
|
|
6276
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6277
|
-
* @static
|
|
6278
|
-
* @param {opentelemetry.proto.metrics.v1.IScopeMetrics} message ScopeMetrics message or plain object to encode
|
|
6279
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6280
|
-
* @returns {$protobuf.Writer} Writer
|
|
6281
|
-
*/
|
|
6282
|
-
ScopeMetrics.encode = function encode(message, writer) {
|
|
6283
|
-
if (!writer)
|
|
6284
|
-
writer = $Writer.create();
|
|
6285
|
-
if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
|
|
6286
|
-
$root.opentelemetry.proto.common.v1.InstrumentationScope.encode(message.scope, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
6287
|
-
if (message.metrics != null && message.metrics.length)
|
|
6288
|
-
for (var i = 0; i < message.metrics.length; ++i)
|
|
6289
|
-
$root.opentelemetry.proto.metrics.v1.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
6290
|
-
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
6291
|
-
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
6292
|
-
return writer;
|
|
6293
|
-
};
|
|
6294
|
-
/**
|
|
6295
|
-
* Encodes the specified ScopeMetrics message, length delimited. Does not implicitly {@link opentelemetry.proto.metrics.v1.ScopeMetrics.verify|verify} messages.
|
|
6296
|
-
* @function encodeDelimited
|
|
6297
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6298
|
-
* @static
|
|
6299
|
-
* @param {opentelemetry.proto.metrics.v1.IScopeMetrics} message ScopeMetrics message or plain object to encode
|
|
6300
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6301
|
-
* @returns {$protobuf.Writer} Writer
|
|
6302
|
-
*/
|
|
6303
|
-
ScopeMetrics.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6304
|
-
return this.encode(message, writer).ldelim();
|
|
6305
|
-
};
|
|
6306
|
-
/**
|
|
6307
|
-
* Decodes a ScopeMetrics message from the specified reader or buffer.
|
|
6308
|
-
* @function decode
|
|
6309
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6310
|
-
* @static
|
|
6311
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6312
|
-
* @param {number} [length] Message length if known beforehand
|
|
6313
|
-
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6314
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6315
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6316
|
-
*/
|
|
6317
|
-
ScopeMetrics.decode = function decode(reader, length) {
|
|
6318
|
-
if (!(reader instanceof $Reader))
|
|
6319
|
-
reader = $Reader.create(reader);
|
|
6320
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.metrics.v1.ScopeMetrics();
|
|
6321
|
-
while (reader.pos < end) {
|
|
6322
|
-
var tag = reader.uint32();
|
|
6323
|
-
switch (tag >>> 3) {
|
|
6324
|
-
case 1: {
|
|
6325
|
-
message.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.decode(reader, reader.uint32());
|
|
6326
|
-
break;
|
|
6327
|
-
}
|
|
6328
|
-
case 2: {
|
|
6329
|
-
if (!(message.metrics && message.metrics.length))
|
|
6330
|
-
message.metrics = [];
|
|
6331
|
-
message.metrics.push($root.opentelemetry.proto.metrics.v1.Metric.decode(reader, reader.uint32()));
|
|
6332
|
-
break;
|
|
6333
|
-
}
|
|
6334
|
-
case 3: {
|
|
6335
|
-
message.schemaUrl = reader.string();
|
|
6336
|
-
break;
|
|
6337
|
-
}
|
|
6338
|
-
default:
|
|
6339
|
-
reader.skipType(tag & 7);
|
|
6340
|
-
break;
|
|
6341
|
-
}
|
|
6342
|
-
}
|
|
6343
|
-
return message;
|
|
6344
|
-
};
|
|
6345
|
-
/**
|
|
6346
|
-
* Decodes a ScopeMetrics message from the specified reader or buffer, length delimited.
|
|
6347
|
-
* @function decodeDelimited
|
|
6348
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6349
|
-
* @static
|
|
6350
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6351
|
-
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6352
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6353
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6354
|
-
*/
|
|
6355
|
-
ScopeMetrics.decodeDelimited = function decodeDelimited(reader) {
|
|
6356
|
-
if (!(reader instanceof $Reader))
|
|
6357
|
-
reader = new $Reader(reader);
|
|
6358
|
-
return this.decode(reader, reader.uint32());
|
|
6359
|
-
};
|
|
6360
|
-
/**
|
|
6361
|
-
* Verifies a ScopeMetrics message.
|
|
6362
|
-
* @function verify
|
|
6363
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6364
|
-
* @static
|
|
6365
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
6366
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6367
|
-
*/
|
|
6368
|
-
ScopeMetrics.verify = function verify(message) {
|
|
6369
|
-
if (typeof message !== "object" || message === null)
|
|
6370
|
-
return "object expected";
|
|
6371
|
-
if (message.scope != null && message.hasOwnProperty("scope")) {
|
|
6372
|
-
var error = $root.opentelemetry.proto.common.v1.InstrumentationScope.verify(message.scope);
|
|
6373
|
-
if (error)
|
|
6374
|
-
return "scope." + error;
|
|
6375
|
-
}
|
|
6376
|
-
if (message.metrics != null && message.hasOwnProperty("metrics")) {
|
|
6377
|
-
if (!Array.isArray(message.metrics))
|
|
6378
|
-
return "metrics: array expected";
|
|
6379
|
-
for (var i = 0; i < message.metrics.length; ++i) {
|
|
6380
|
-
var error = $root.opentelemetry.proto.metrics.v1.Metric.verify(message.metrics[i]);
|
|
6381
|
-
if (error)
|
|
6382
|
-
return "metrics." + error;
|
|
6383
|
-
}
|
|
6384
|
-
}
|
|
6385
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
6386
|
-
if (!$util.isString(message.schemaUrl))
|
|
6387
|
-
return "schemaUrl: string expected";
|
|
6388
|
-
return null;
|
|
6389
|
-
};
|
|
6390
|
-
/**
|
|
6391
|
-
* Creates a ScopeMetrics message from a plain object. Also converts values to their respective internal types.
|
|
6392
|
-
* @function fromObject
|
|
6393
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6394
|
-
* @static
|
|
6395
|
-
* @param {Object.<string,*>} object Plain object
|
|
6396
|
-
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6397
|
-
*/
|
|
6398
|
-
ScopeMetrics.fromObject = function fromObject(object) {
|
|
6399
|
-
if (object instanceof $root.opentelemetry.proto.metrics.v1.ScopeMetrics)
|
|
6400
|
-
return object;
|
|
6401
|
-
var message = new $root.opentelemetry.proto.metrics.v1.ScopeMetrics();
|
|
6402
|
-
if (object.scope != null) {
|
|
6403
|
-
if (typeof object.scope !== "object")
|
|
6404
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");
|
|
6405
|
-
message.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(object.scope);
|
|
6406
|
-
}
|
|
6407
|
-
if (object.metrics) {
|
|
6408
|
-
if (!Array.isArray(object.metrics))
|
|
6409
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");
|
|
6410
|
-
message.metrics = [];
|
|
6411
|
-
for (var i = 0; i < object.metrics.length; ++i) {
|
|
6412
|
-
if (typeof object.metrics[i] !== "object")
|
|
6413
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");
|
|
6414
|
-
message.metrics[i] = $root.opentelemetry.proto.metrics.v1.Metric.fromObject(object.metrics[i]);
|
|
6415
|
-
}
|
|
6416
|
-
}
|
|
6417
|
-
if (object.schemaUrl != null)
|
|
6418
|
-
message.schemaUrl = String(object.schemaUrl);
|
|
6419
|
-
return message;
|
|
6420
|
-
};
|
|
6421
|
-
/**
|
|
6422
|
-
* Creates a plain object from a ScopeMetrics message. Also converts values to other types if specified.
|
|
6423
|
-
* @function toObject
|
|
6424
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6425
|
-
* @static
|
|
6426
|
-
* @param {opentelemetry.proto.metrics.v1.ScopeMetrics} message ScopeMetrics
|
|
6427
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6428
|
-
* @returns {Object.<string,*>} Plain object
|
|
6429
|
-
*/
|
|
6430
|
-
ScopeMetrics.toObject = function toObject(message, options) {
|
|
6431
|
-
if (!options)
|
|
6432
|
-
options = {};
|
|
6433
|
-
var object = {};
|
|
6434
|
-
if (options.arrays || options.defaults)
|
|
6435
|
-
object.metrics = [];
|
|
6436
|
-
if (options.defaults) {
|
|
6437
|
-
object.scope = null;
|
|
6438
|
-
object.schemaUrl = "";
|
|
6439
|
-
}
|
|
6440
|
-
if (message.scope != null && message.hasOwnProperty("scope"))
|
|
6441
|
-
object.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.toObject(message.scope, options);
|
|
6442
|
-
if (message.metrics && message.metrics.length) {
|
|
6443
|
-
object.metrics = [];
|
|
6444
|
-
for (var j = 0; j < message.metrics.length; ++j)
|
|
6445
|
-
object.metrics[j] = $root.opentelemetry.proto.metrics.v1.Metric.toObject(message.metrics[j], options);
|
|
6446
|
-
}
|
|
6447
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
6448
|
-
object.schemaUrl = message.schemaUrl;
|
|
6449
|
-
return object;
|
|
6450
|
-
};
|
|
6451
|
-
/**
|
|
6452
|
-
* Converts this ScopeMetrics to JSON.
|
|
6453
|
-
* @function toJSON
|
|
6454
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6455
|
-
* @instance
|
|
6456
|
-
* @returns {Object.<string,*>} JSON object
|
|
6457
|
-
*/
|
|
6458
|
-
ScopeMetrics.prototype.toJSON = function toJSON() {
|
|
6459
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6460
|
-
};
|
|
6461
|
-
/**
|
|
6462
|
-
* Gets the default type url for ScopeMetrics
|
|
6463
|
-
* @function getTypeUrl
|
|
6464
|
-
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6465
|
-
* @static
|
|
6466
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6467
|
-
* @returns {string} The default type url
|
|
6468
|
-
*/
|
|
6469
|
-
ScopeMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6470
|
-
if (typeUrlPrefix === undefined) {
|
|
6471
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
6472
|
-
}
|
|
6473
|
-
return typeUrlPrefix + "/opentelemetry.proto.metrics.v1.ScopeMetrics";
|
|
6474
|
-
};
|
|
6475
|
-
return ScopeMetrics;
|
|
6476
|
-
})();
|
|
6477
|
-
v1.InstrumentationLibraryMetrics = (function () {
|
|
6478
|
-
/**
|
|
6479
|
-
* Properties of an InstrumentationLibraryMetrics.
|
|
6480
|
-
* @memberof opentelemetry.proto.metrics.v1
|
|
6481
|
-
* @interface IInstrumentationLibraryMetrics
|
|
6482
|
-
* @property {opentelemetry.proto.common.v1.IInstrumentationLibrary|null} [instrumentationLibrary] InstrumentationLibraryMetrics instrumentationLibrary
|
|
6483
|
-
* @property {Array.<opentelemetry.proto.metrics.v1.IMetric>|null} [metrics] InstrumentationLibraryMetrics metrics
|
|
6484
|
-
* @property {string|null} [schemaUrl] InstrumentationLibraryMetrics schemaUrl
|
|
6485
|
-
*/
|
|
6486
|
-
/**
|
|
6487
|
-
* Constructs a new InstrumentationLibraryMetrics.
|
|
6488
|
-
* @memberof opentelemetry.proto.metrics.v1
|
|
6489
|
-
* @classdesc Represents an InstrumentationLibraryMetrics.
|
|
6490
|
-
* @implements IInstrumentationLibraryMetrics
|
|
6491
|
-
* @constructor
|
|
6492
|
-
* @param {opentelemetry.proto.metrics.v1.IInstrumentationLibraryMetrics=} [properties] Properties to set
|
|
6493
|
-
*/
|
|
6494
|
-
function InstrumentationLibraryMetrics(properties) {
|
|
6495
|
-
this.metrics = [];
|
|
6496
|
-
if (properties)
|
|
6497
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6498
|
-
if (properties[keys[i]] != null)
|
|
6499
|
-
this[keys[i]] = properties[keys[i]];
|
|
6500
|
-
}
|
|
6501
|
-
/**
|
|
6502
|
-
* InstrumentationLibraryMetrics instrumentationLibrary.
|
|
6503
|
-
* @member {opentelemetry.proto.common.v1.IInstrumentationLibrary|null|undefined} instrumentationLibrary
|
|
6504
|
-
* @memberof opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics
|
|
6505
|
-
* @instance
|
|
6506
|
-
*/
|
|
6507
|
-
InstrumentationLibraryMetrics.prototype.instrumentationLibrary = null;
|
|
6508
|
-
/**
|
|
6509
|
-
* InstrumentationLibraryMetrics metrics.
|
|
6510
|
-
* @member {Array.<opentelemetry.proto.metrics.v1.IMetric>} metrics
|
|
6511
|
-
* @memberof opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics
|
|
6512
|
-
* @instance
|
|
6513
|
-
*/
|
|
6514
|
-
InstrumentationLibraryMetrics.prototype.metrics = $util.emptyArray;
|
|
6515
|
-
/**
|
|
6516
|
-
* InstrumentationLibraryMetrics schemaUrl.
|
|
6517
|
-
* @member {string|null|undefined} schemaUrl
|
|
6518
|
-
* @memberof opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics
|
|
6519
|
-
* @instance
|
|
6520
|
-
*/
|
|
6521
|
-
InstrumentationLibraryMetrics.prototype.schemaUrl = null;
|
|
6522
|
-
/**
|
|
6523
|
-
* Creates a new InstrumentationLibraryMetrics instance using the specified properties.
|
|
6524
|
-
* @function create
|
|
6525
|
-
* @memberof opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics
|
|
6526
|
-
* @static
|
|
6527
|
-
* @param {opentelemetry.proto.metrics.v1.IInstrumentationLibraryMetrics=} [properties] Properties to set
|
|
6528
|
-
* @returns {opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics} InstrumentationLibraryMetrics instance
|
|
6529
|
-
*/
|
|
6530
|
-
InstrumentationLibraryMetrics.create = function create(properties) {
|
|
6531
|
-
return new InstrumentationLibraryMetrics(properties);
|
|
6552
|
+
return new ScopeMetrics(properties);
|
|
6532
6553
|
};
|
|
6533
6554
|
/**
|
|
6534
|
-
* Encodes the specified
|
|
6555
|
+
* Encodes the specified ScopeMetrics message. Does not implicitly {@link opentelemetry.proto.metrics.v1.ScopeMetrics.verify|verify} messages.
|
|
6535
6556
|
* @function encode
|
|
6536
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6557
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6537
6558
|
* @static
|
|
6538
|
-
* @param {opentelemetry.proto.metrics.v1.
|
|
6559
|
+
* @param {opentelemetry.proto.metrics.v1.IScopeMetrics} message ScopeMetrics message or plain object to encode
|
|
6539
6560
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6540
6561
|
* @returns {$protobuf.Writer} Writer
|
|
6541
6562
|
*/
|
|
6542
|
-
|
|
6563
|
+
ScopeMetrics.encode = function encode(message, writer) {
|
|
6543
6564
|
if (!writer)
|
|
6544
6565
|
writer = $Writer.create();
|
|
6545
|
-
if (message.
|
|
6546
|
-
$root.opentelemetry.proto.common.v1.
|
|
6566
|
+
if (message.scope != null && Object.hasOwnProperty.call(message, "scope"))
|
|
6567
|
+
$root.opentelemetry.proto.common.v1.InstrumentationScope.encode(message.scope, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
6547
6568
|
if (message.metrics != null && message.metrics.length)
|
|
6548
6569
|
for (var i = 0; i < message.metrics.length; ++i)
|
|
6549
6570
|
$root.opentelemetry.proto.metrics.v1.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
@@ -6552,37 +6573,37 @@ $root.opentelemetry = (function () {
|
|
|
6552
6573
|
return writer;
|
|
6553
6574
|
};
|
|
6554
6575
|
/**
|
|
6555
|
-
* Encodes the specified
|
|
6576
|
+
* Encodes the specified ScopeMetrics message, length delimited. Does not implicitly {@link opentelemetry.proto.metrics.v1.ScopeMetrics.verify|verify} messages.
|
|
6556
6577
|
* @function encodeDelimited
|
|
6557
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6578
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6558
6579
|
* @static
|
|
6559
|
-
* @param {opentelemetry.proto.metrics.v1.
|
|
6580
|
+
* @param {opentelemetry.proto.metrics.v1.IScopeMetrics} message ScopeMetrics message or plain object to encode
|
|
6560
6581
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6561
6582
|
* @returns {$protobuf.Writer} Writer
|
|
6562
6583
|
*/
|
|
6563
|
-
|
|
6584
|
+
ScopeMetrics.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6564
6585
|
return this.encode(message, writer).ldelim();
|
|
6565
6586
|
};
|
|
6566
6587
|
/**
|
|
6567
|
-
* Decodes
|
|
6588
|
+
* Decodes a ScopeMetrics message from the specified reader or buffer.
|
|
6568
6589
|
* @function decode
|
|
6569
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6590
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6570
6591
|
* @static
|
|
6571
6592
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6572
6593
|
* @param {number} [length] Message length if known beforehand
|
|
6573
|
-
* @returns {opentelemetry.proto.metrics.v1.
|
|
6594
|
+
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6574
6595
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6575
6596
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6576
6597
|
*/
|
|
6577
|
-
|
|
6598
|
+
ScopeMetrics.decode = function decode(reader, length) {
|
|
6578
6599
|
if (!(reader instanceof $Reader))
|
|
6579
6600
|
reader = $Reader.create(reader);
|
|
6580
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.metrics.v1.
|
|
6601
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.metrics.v1.ScopeMetrics();
|
|
6581
6602
|
while (reader.pos < end) {
|
|
6582
6603
|
var tag = reader.uint32();
|
|
6583
6604
|
switch (tag >>> 3) {
|
|
6584
6605
|
case 1: {
|
|
6585
|
-
message.
|
|
6606
|
+
message.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.decode(reader, reader.uint32());
|
|
6586
6607
|
break;
|
|
6587
6608
|
}
|
|
6588
6609
|
case 2: {
|
|
@@ -6603,35 +6624,35 @@ $root.opentelemetry = (function () {
|
|
|
6603
6624
|
return message;
|
|
6604
6625
|
};
|
|
6605
6626
|
/**
|
|
6606
|
-
* Decodes
|
|
6627
|
+
* Decodes a ScopeMetrics message from the specified reader or buffer, length delimited.
|
|
6607
6628
|
* @function decodeDelimited
|
|
6608
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6629
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6609
6630
|
* @static
|
|
6610
6631
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6611
|
-
* @returns {opentelemetry.proto.metrics.v1.
|
|
6632
|
+
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6612
6633
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6613
6634
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6614
6635
|
*/
|
|
6615
|
-
|
|
6636
|
+
ScopeMetrics.decodeDelimited = function decodeDelimited(reader) {
|
|
6616
6637
|
if (!(reader instanceof $Reader))
|
|
6617
6638
|
reader = new $Reader(reader);
|
|
6618
6639
|
return this.decode(reader, reader.uint32());
|
|
6619
6640
|
};
|
|
6620
6641
|
/**
|
|
6621
|
-
* Verifies
|
|
6642
|
+
* Verifies a ScopeMetrics message.
|
|
6622
6643
|
* @function verify
|
|
6623
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6644
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6624
6645
|
* @static
|
|
6625
6646
|
* @param {Object.<string,*>} message Plain object to verify
|
|
6626
6647
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6627
6648
|
*/
|
|
6628
|
-
|
|
6649
|
+
ScopeMetrics.verify = function verify(message) {
|
|
6629
6650
|
if (typeof message !== "object" || message === null)
|
|
6630
6651
|
return "object expected";
|
|
6631
|
-
if (message.
|
|
6632
|
-
var error = $root.opentelemetry.proto.common.v1.
|
|
6652
|
+
if (message.scope != null && message.hasOwnProperty("scope")) {
|
|
6653
|
+
var error = $root.opentelemetry.proto.common.v1.InstrumentationScope.verify(message.scope);
|
|
6633
6654
|
if (error)
|
|
6634
|
-
return "
|
|
6655
|
+
return "scope." + error;
|
|
6635
6656
|
}
|
|
6636
6657
|
if (message.metrics != null && message.hasOwnProperty("metrics")) {
|
|
6637
6658
|
if (!Array.isArray(message.metrics))
|
|
@@ -6648,29 +6669,29 @@ $root.opentelemetry = (function () {
|
|
|
6648
6669
|
return null;
|
|
6649
6670
|
};
|
|
6650
6671
|
/**
|
|
6651
|
-
* Creates
|
|
6672
|
+
* Creates a ScopeMetrics message from a plain object. Also converts values to their respective internal types.
|
|
6652
6673
|
* @function fromObject
|
|
6653
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6674
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6654
6675
|
* @static
|
|
6655
6676
|
* @param {Object.<string,*>} object Plain object
|
|
6656
|
-
* @returns {opentelemetry.proto.metrics.v1.
|
|
6677
|
+
* @returns {opentelemetry.proto.metrics.v1.ScopeMetrics} ScopeMetrics
|
|
6657
6678
|
*/
|
|
6658
|
-
|
|
6659
|
-
if (object instanceof $root.opentelemetry.proto.metrics.v1.
|
|
6679
|
+
ScopeMetrics.fromObject = function fromObject(object) {
|
|
6680
|
+
if (object instanceof $root.opentelemetry.proto.metrics.v1.ScopeMetrics)
|
|
6660
6681
|
return object;
|
|
6661
|
-
var message = new $root.opentelemetry.proto.metrics.v1.
|
|
6662
|
-
if (object.
|
|
6663
|
-
if (typeof object.
|
|
6664
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.
|
|
6665
|
-
message.
|
|
6682
|
+
var message = new $root.opentelemetry.proto.metrics.v1.ScopeMetrics();
|
|
6683
|
+
if (object.scope != null) {
|
|
6684
|
+
if (typeof object.scope !== "object")
|
|
6685
|
+
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");
|
|
6686
|
+
message.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(object.scope);
|
|
6666
6687
|
}
|
|
6667
6688
|
if (object.metrics) {
|
|
6668
6689
|
if (!Array.isArray(object.metrics))
|
|
6669
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.
|
|
6690
|
+
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");
|
|
6670
6691
|
message.metrics = [];
|
|
6671
6692
|
for (var i = 0; i < object.metrics.length; ++i) {
|
|
6672
6693
|
if (typeof object.metrics[i] !== "object")
|
|
6673
|
-
throw TypeError(".opentelemetry.proto.metrics.v1.
|
|
6694
|
+
throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");
|
|
6674
6695
|
message.metrics[i] = $root.opentelemetry.proto.metrics.v1.Metric.fromObject(object.metrics[i]);
|
|
6675
6696
|
}
|
|
6676
6697
|
}
|
|
@@ -6679,26 +6700,26 @@ $root.opentelemetry = (function () {
|
|
|
6679
6700
|
return message;
|
|
6680
6701
|
};
|
|
6681
6702
|
/**
|
|
6682
|
-
* Creates a plain object from
|
|
6703
|
+
* Creates a plain object from a ScopeMetrics message. Also converts values to other types if specified.
|
|
6683
6704
|
* @function toObject
|
|
6684
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6705
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6685
6706
|
* @static
|
|
6686
|
-
* @param {opentelemetry.proto.metrics.v1.
|
|
6707
|
+
* @param {opentelemetry.proto.metrics.v1.ScopeMetrics} message ScopeMetrics
|
|
6687
6708
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6688
6709
|
* @returns {Object.<string,*>} Plain object
|
|
6689
6710
|
*/
|
|
6690
|
-
|
|
6711
|
+
ScopeMetrics.toObject = function toObject(message, options) {
|
|
6691
6712
|
if (!options)
|
|
6692
6713
|
options = {};
|
|
6693
6714
|
var object = {};
|
|
6694
6715
|
if (options.arrays || options.defaults)
|
|
6695
6716
|
object.metrics = [];
|
|
6696
6717
|
if (options.defaults) {
|
|
6697
|
-
object.
|
|
6718
|
+
object.scope = null;
|
|
6698
6719
|
object.schemaUrl = "";
|
|
6699
6720
|
}
|
|
6700
|
-
if (message.
|
|
6701
|
-
object.
|
|
6721
|
+
if (message.scope != null && message.hasOwnProperty("scope"))
|
|
6722
|
+
object.scope = $root.opentelemetry.proto.common.v1.InstrumentationScope.toObject(message.scope, options);
|
|
6702
6723
|
if (message.metrics && message.metrics.length) {
|
|
6703
6724
|
object.metrics = [];
|
|
6704
6725
|
for (var j = 0; j < message.metrics.length; ++j)
|
|
@@ -6709,30 +6730,30 @@ $root.opentelemetry = (function () {
|
|
|
6709
6730
|
return object;
|
|
6710
6731
|
};
|
|
6711
6732
|
/**
|
|
6712
|
-
* Converts this
|
|
6733
|
+
* Converts this ScopeMetrics to JSON.
|
|
6713
6734
|
* @function toJSON
|
|
6714
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6735
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6715
6736
|
* @instance
|
|
6716
6737
|
* @returns {Object.<string,*>} JSON object
|
|
6717
6738
|
*/
|
|
6718
|
-
|
|
6739
|
+
ScopeMetrics.prototype.toJSON = function toJSON() {
|
|
6719
6740
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6720
6741
|
};
|
|
6721
6742
|
/**
|
|
6722
|
-
* Gets the default type url for
|
|
6743
|
+
* Gets the default type url for ScopeMetrics
|
|
6723
6744
|
* @function getTypeUrl
|
|
6724
|
-
* @memberof opentelemetry.proto.metrics.v1.
|
|
6745
|
+
* @memberof opentelemetry.proto.metrics.v1.ScopeMetrics
|
|
6725
6746
|
* @static
|
|
6726
6747
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6727
6748
|
* @returns {string} The default type url
|
|
6728
6749
|
*/
|
|
6729
|
-
|
|
6750
|
+
ScopeMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
6730
6751
|
if (typeUrlPrefix === undefined) {
|
|
6731
6752
|
typeUrlPrefix = "type.googleapis.com";
|
|
6732
6753
|
}
|
|
6733
|
-
return typeUrlPrefix + "/opentelemetry.proto.metrics.v1.
|
|
6754
|
+
return typeUrlPrefix + "/opentelemetry.proto.metrics.v1.ScopeMetrics";
|
|
6734
6755
|
};
|
|
6735
|
-
return
|
|
6756
|
+
return ScopeMetrics;
|
|
6736
6757
|
})();
|
|
6737
6758
|
v1.Metric = (function () {
|
|
6738
6759
|
/**
|
|
@@ -8376,13 +8397,13 @@ $root.opentelemetry = (function () {
|
|
|
8376
8397
|
* DataPointFlags enum.
|
|
8377
8398
|
* @name opentelemetry.proto.metrics.v1.DataPointFlags
|
|
8378
8399
|
* @enum {number}
|
|
8379
|
-
* @property {number}
|
|
8380
|
-
* @property {number}
|
|
8400
|
+
* @property {number} DATA_POINT_FLAGS_DO_NOT_USE=0 DATA_POINT_FLAGS_DO_NOT_USE value
|
|
8401
|
+
* @property {number} DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK=1 DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK value
|
|
8381
8402
|
*/
|
|
8382
8403
|
v1.DataPointFlags = (function () {
|
|
8383
8404
|
var valuesById = {}, values = Object.create(valuesById);
|
|
8384
|
-
values[valuesById[0] = "
|
|
8385
|
-
values[valuesById[1] = "
|
|
8405
|
+
values[valuesById[0] = "DATA_POINT_FLAGS_DO_NOT_USE"] = 0;
|
|
8406
|
+
values[valuesById[1] = "DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"] = 1;
|
|
8386
8407
|
return values;
|
|
8387
8408
|
})();
|
|
8388
8409
|
v1.NumberDataPoint = (function () {
|
|
@@ -9434,6 +9455,7 @@ $root.opentelemetry = (function () {
|
|
|
9434
9455
|
* @property {Array.<opentelemetry.proto.metrics.v1.IExemplar>|null} [exemplars] ExponentialHistogramDataPoint exemplars
|
|
9435
9456
|
* @property {number|null} [min] ExponentialHistogramDataPoint min
|
|
9436
9457
|
* @property {number|null} [max] ExponentialHistogramDataPoint max
|
|
9458
|
+
* @property {number|null} [zeroThreshold] ExponentialHistogramDataPoint zeroThreshold
|
|
9437
9459
|
*/
|
|
9438
9460
|
/**
|
|
9439
9461
|
* Constructs a new ExponentialHistogramDataPoint.
|
|
@@ -9542,6 +9564,13 @@ $root.opentelemetry = (function () {
|
|
|
9542
9564
|
* @instance
|
|
9543
9565
|
*/
|
|
9544
9566
|
ExponentialHistogramDataPoint.prototype.max = null;
|
|
9567
|
+
/**
|
|
9568
|
+
* ExponentialHistogramDataPoint zeroThreshold.
|
|
9569
|
+
* @member {number|null|undefined} zeroThreshold
|
|
9570
|
+
* @memberof opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint
|
|
9571
|
+
* @instance
|
|
9572
|
+
*/
|
|
9573
|
+
ExponentialHistogramDataPoint.prototype.zeroThreshold = null;
|
|
9545
9574
|
// OneOf field names bound to virtual getters and setters
|
|
9546
9575
|
var $oneOfFields;
|
|
9547
9576
|
/**
|
|
@@ -9625,6 +9654,8 @@ $root.opentelemetry = (function () {
|
|
|
9625
9654
|
writer.uint32(/* id 12, wireType 1 =*/ 97).double(message.min);
|
|
9626
9655
|
if (message.max != null && Object.hasOwnProperty.call(message, "max"))
|
|
9627
9656
|
writer.uint32(/* id 13, wireType 1 =*/ 105).double(message.max);
|
|
9657
|
+
if (message.zeroThreshold != null && Object.hasOwnProperty.call(message, "zeroThreshold"))
|
|
9658
|
+
writer.uint32(/* id 14, wireType 1 =*/ 113).double(message.zeroThreshold);
|
|
9628
9659
|
return writer;
|
|
9629
9660
|
};
|
|
9630
9661
|
/**
|
|
@@ -9713,6 +9744,10 @@ $root.opentelemetry = (function () {
|
|
|
9713
9744
|
message.max = reader.double();
|
|
9714
9745
|
break;
|
|
9715
9746
|
}
|
|
9747
|
+
case 14: {
|
|
9748
|
+
message.zeroThreshold = reader.double();
|
|
9749
|
+
break;
|
|
9750
|
+
}
|
|
9716
9751
|
default:
|
|
9717
9752
|
reader.skipType(tag & 7);
|
|
9718
9753
|
break;
|
|
@@ -9808,6 +9843,9 @@ $root.opentelemetry = (function () {
|
|
|
9808
9843
|
if (typeof message.max !== "number")
|
|
9809
9844
|
return "max: number expected";
|
|
9810
9845
|
}
|
|
9846
|
+
if (message.zeroThreshold != null && message.hasOwnProperty("zeroThreshold"))
|
|
9847
|
+
if (typeof message.zeroThreshold !== "number")
|
|
9848
|
+
return "zeroThreshold: number expected";
|
|
9811
9849
|
return null;
|
|
9812
9850
|
};
|
|
9813
9851
|
/**
|
|
@@ -9898,6 +9936,8 @@ $root.opentelemetry = (function () {
|
|
|
9898
9936
|
message.min = Number(object.min);
|
|
9899
9937
|
if (object.max != null)
|
|
9900
9938
|
message.max = Number(object.max);
|
|
9939
|
+
if (object.zeroThreshold != null)
|
|
9940
|
+
message.zeroThreshold = Number(object.zeroThreshold);
|
|
9901
9941
|
return message;
|
|
9902
9942
|
};
|
|
9903
9943
|
/**
|
|
@@ -9946,6 +9986,7 @@ $root.opentelemetry = (function () {
|
|
|
9946
9986
|
object.positive = null;
|
|
9947
9987
|
object.negative = null;
|
|
9948
9988
|
object.flags = 0;
|
|
9989
|
+
object.zeroThreshold = 0;
|
|
9949
9990
|
}
|
|
9950
9991
|
if (message.attributes && message.attributes.length) {
|
|
9951
9992
|
object.attributes = [];
|
|
@@ -10000,6 +10041,8 @@ $root.opentelemetry = (function () {
|
|
|
10000
10041
|
if (options.oneofs)
|
|
10001
10042
|
object._max = "max";
|
|
10002
10043
|
}
|
|
10044
|
+
if (message.zeroThreshold != null && message.hasOwnProperty("zeroThreshold"))
|
|
10045
|
+
object.zeroThreshold = options.json && !isFinite(message.zeroThreshold) ? String(message.zeroThreshold) : message.zeroThreshold;
|
|
10003
10046
|
return object;
|
|
10004
10047
|
};
|
|
10005
10048
|
/**
|
|
@@ -11516,7 +11559,6 @@ $root.opentelemetry = (function () {
|
|
|
11516
11559
|
* @interface IResourceLogs
|
|
11517
11560
|
* @property {opentelemetry.proto.resource.v1.IResource|null} [resource] ResourceLogs resource
|
|
11518
11561
|
* @property {Array.<opentelemetry.proto.logs.v1.IScopeLogs>|null} [scopeLogs] ResourceLogs scopeLogs
|
|
11519
|
-
* @property {Array.<opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs>|null} [instrumentationLibraryLogs] ResourceLogs instrumentationLibraryLogs
|
|
11520
11562
|
* @property {string|null} [schemaUrl] ResourceLogs schemaUrl
|
|
11521
11563
|
*/
|
|
11522
11564
|
/**
|
|
@@ -11529,7 +11571,6 @@ $root.opentelemetry = (function () {
|
|
|
11529
11571
|
*/
|
|
11530
11572
|
function ResourceLogs(properties) {
|
|
11531
11573
|
this.scopeLogs = [];
|
|
11532
|
-
this.instrumentationLibraryLogs = [];
|
|
11533
11574
|
if (properties)
|
|
11534
11575
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11535
11576
|
if (properties[keys[i]] != null)
|
|
@@ -11549,13 +11590,6 @@ $root.opentelemetry = (function () {
|
|
|
11549
11590
|
* @instance
|
|
11550
11591
|
*/
|
|
11551
11592
|
ResourceLogs.prototype.scopeLogs = $util.emptyArray;
|
|
11552
|
-
/**
|
|
11553
|
-
* ResourceLogs instrumentationLibraryLogs.
|
|
11554
|
-
* @member {Array.<opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs>} instrumentationLibraryLogs
|
|
11555
|
-
* @memberof opentelemetry.proto.logs.v1.ResourceLogs
|
|
11556
|
-
* @instance
|
|
11557
|
-
*/
|
|
11558
|
-
ResourceLogs.prototype.instrumentationLibraryLogs = $util.emptyArray;
|
|
11559
11593
|
/**
|
|
11560
11594
|
* ResourceLogs schemaUrl.
|
|
11561
11595
|
* @member {string|null|undefined} schemaUrl
|
|
@@ -11593,9 +11627,6 @@ $root.opentelemetry = (function () {
|
|
|
11593
11627
|
$root.opentelemetry.proto.logs.v1.ScopeLogs.encode(message.scopeLogs[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
11594
11628
|
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
11595
11629
|
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
11596
|
-
if (message.instrumentationLibraryLogs != null && message.instrumentationLibraryLogs.length)
|
|
11597
|
-
for (var i = 0; i < message.instrumentationLibraryLogs.length; ++i)
|
|
11598
|
-
$root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.encode(message.instrumentationLibraryLogs[i], writer.uint32(/* id 1000, wireType 2 =*/ 8002).fork()).ldelim();
|
|
11599
11630
|
return writer;
|
|
11600
11631
|
};
|
|
11601
11632
|
/**
|
|
@@ -11638,12 +11669,6 @@ $root.opentelemetry = (function () {
|
|
|
11638
11669
|
message.scopeLogs.push($root.opentelemetry.proto.logs.v1.ScopeLogs.decode(reader, reader.uint32()));
|
|
11639
11670
|
break;
|
|
11640
11671
|
}
|
|
11641
|
-
case 1000: {
|
|
11642
|
-
if (!(message.instrumentationLibraryLogs && message.instrumentationLibraryLogs.length))
|
|
11643
|
-
message.instrumentationLibraryLogs = [];
|
|
11644
|
-
message.instrumentationLibraryLogs.push($root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.decode(reader, reader.uint32()));
|
|
11645
|
-
break;
|
|
11646
|
-
}
|
|
11647
11672
|
case 3: {
|
|
11648
11673
|
message.schemaUrl = reader.string();
|
|
11649
11674
|
break;
|
|
@@ -11695,15 +11720,6 @@ $root.opentelemetry = (function () {
|
|
|
11695
11720
|
return "scopeLogs." + error;
|
|
11696
11721
|
}
|
|
11697
11722
|
}
|
|
11698
|
-
if (message.instrumentationLibraryLogs != null && message.hasOwnProperty("instrumentationLibraryLogs")) {
|
|
11699
|
-
if (!Array.isArray(message.instrumentationLibraryLogs))
|
|
11700
|
-
return "instrumentationLibraryLogs: array expected";
|
|
11701
|
-
for (var i = 0; i < message.instrumentationLibraryLogs.length; ++i) {
|
|
11702
|
-
var error = $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.verify(message.instrumentationLibraryLogs[i]);
|
|
11703
|
-
if (error)
|
|
11704
|
-
return "instrumentationLibraryLogs." + error;
|
|
11705
|
-
}
|
|
11706
|
-
}
|
|
11707
11723
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
11708
11724
|
if (!$util.isString(message.schemaUrl))
|
|
11709
11725
|
return "schemaUrl: string expected";
|
|
@@ -11736,16 +11752,6 @@ $root.opentelemetry = (function () {
|
|
|
11736
11752
|
message.scopeLogs[i] = $root.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(object.scopeLogs[i]);
|
|
11737
11753
|
}
|
|
11738
11754
|
}
|
|
11739
|
-
if (object.instrumentationLibraryLogs) {
|
|
11740
|
-
if (!Array.isArray(object.instrumentationLibraryLogs))
|
|
11741
|
-
throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.instrumentationLibraryLogs: array expected");
|
|
11742
|
-
message.instrumentationLibraryLogs = [];
|
|
11743
|
-
for (var i = 0; i < object.instrumentationLibraryLogs.length; ++i) {
|
|
11744
|
-
if (typeof object.instrumentationLibraryLogs[i] !== "object")
|
|
11745
|
-
throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.instrumentationLibraryLogs: object expected");
|
|
11746
|
-
message.instrumentationLibraryLogs[i] = $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.fromObject(object.instrumentationLibraryLogs[i]);
|
|
11747
|
-
}
|
|
11748
|
-
}
|
|
11749
11755
|
if (object.schemaUrl != null)
|
|
11750
11756
|
message.schemaUrl = String(object.schemaUrl);
|
|
11751
11757
|
return message;
|
|
@@ -11763,10 +11769,8 @@ $root.opentelemetry = (function () {
|
|
|
11763
11769
|
if (!options)
|
|
11764
11770
|
options = {};
|
|
11765
11771
|
var object = {};
|
|
11766
|
-
if (options.arrays || options.defaults)
|
|
11772
|
+
if (options.arrays || options.defaults)
|
|
11767
11773
|
object.scopeLogs = [];
|
|
11768
|
-
object.instrumentationLibraryLogs = [];
|
|
11769
|
-
}
|
|
11770
11774
|
if (options.defaults) {
|
|
11771
11775
|
object.resource = null;
|
|
11772
11776
|
object.schemaUrl = "";
|
|
@@ -11780,11 +11784,6 @@ $root.opentelemetry = (function () {
|
|
|
11780
11784
|
}
|
|
11781
11785
|
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
11782
11786
|
object.schemaUrl = message.schemaUrl;
|
|
11783
|
-
if (message.instrumentationLibraryLogs && message.instrumentationLibraryLogs.length) {
|
|
11784
|
-
object.instrumentationLibraryLogs = [];
|
|
11785
|
-
for (var j = 0; j < message.instrumentationLibraryLogs.length; ++j)
|
|
11786
|
-
object.instrumentationLibraryLogs[j] = $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.toObject(message.instrumentationLibraryLogs[j], options);
|
|
11787
|
-
}
|
|
11788
11787
|
return object;
|
|
11789
11788
|
};
|
|
11790
11789
|
/**
|
|
@@ -12073,266 +12072,6 @@ $root.opentelemetry = (function () {
|
|
|
12073
12072
|
};
|
|
12074
12073
|
return ScopeLogs;
|
|
12075
12074
|
})();
|
|
12076
|
-
v1.InstrumentationLibraryLogs = (function () {
|
|
12077
|
-
/**
|
|
12078
|
-
* Properties of an InstrumentationLibraryLogs.
|
|
12079
|
-
* @memberof opentelemetry.proto.logs.v1
|
|
12080
|
-
* @interface IInstrumentationLibraryLogs
|
|
12081
|
-
* @property {opentelemetry.proto.common.v1.IInstrumentationLibrary|null} [instrumentationLibrary] InstrumentationLibraryLogs instrumentationLibrary
|
|
12082
|
-
* @property {Array.<opentelemetry.proto.logs.v1.ILogRecord>|null} [logRecords] InstrumentationLibraryLogs logRecords
|
|
12083
|
-
* @property {string|null} [schemaUrl] InstrumentationLibraryLogs schemaUrl
|
|
12084
|
-
*/
|
|
12085
|
-
/**
|
|
12086
|
-
* Constructs a new InstrumentationLibraryLogs.
|
|
12087
|
-
* @memberof opentelemetry.proto.logs.v1
|
|
12088
|
-
* @classdesc Represents an InstrumentationLibraryLogs.
|
|
12089
|
-
* @implements IInstrumentationLibraryLogs
|
|
12090
|
-
* @constructor
|
|
12091
|
-
* @param {opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs=} [properties] Properties to set
|
|
12092
|
-
*/
|
|
12093
|
-
function InstrumentationLibraryLogs(properties) {
|
|
12094
|
-
this.logRecords = [];
|
|
12095
|
-
if (properties)
|
|
12096
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12097
|
-
if (properties[keys[i]] != null)
|
|
12098
|
-
this[keys[i]] = properties[keys[i]];
|
|
12099
|
-
}
|
|
12100
|
-
/**
|
|
12101
|
-
* InstrumentationLibraryLogs instrumentationLibrary.
|
|
12102
|
-
* @member {opentelemetry.proto.common.v1.IInstrumentationLibrary|null|undefined} instrumentationLibrary
|
|
12103
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12104
|
-
* @instance
|
|
12105
|
-
*/
|
|
12106
|
-
InstrumentationLibraryLogs.prototype.instrumentationLibrary = null;
|
|
12107
|
-
/**
|
|
12108
|
-
* InstrumentationLibraryLogs logRecords.
|
|
12109
|
-
* @member {Array.<opentelemetry.proto.logs.v1.ILogRecord>} logRecords
|
|
12110
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12111
|
-
* @instance
|
|
12112
|
-
*/
|
|
12113
|
-
InstrumentationLibraryLogs.prototype.logRecords = $util.emptyArray;
|
|
12114
|
-
/**
|
|
12115
|
-
* InstrumentationLibraryLogs schemaUrl.
|
|
12116
|
-
* @member {string|null|undefined} schemaUrl
|
|
12117
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12118
|
-
* @instance
|
|
12119
|
-
*/
|
|
12120
|
-
InstrumentationLibraryLogs.prototype.schemaUrl = null;
|
|
12121
|
-
/**
|
|
12122
|
-
* Creates a new InstrumentationLibraryLogs instance using the specified properties.
|
|
12123
|
-
* @function create
|
|
12124
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12125
|
-
* @static
|
|
12126
|
-
* @param {opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs=} [properties] Properties to set
|
|
12127
|
-
* @returns {opentelemetry.proto.logs.v1.InstrumentationLibraryLogs} InstrumentationLibraryLogs instance
|
|
12128
|
-
*/
|
|
12129
|
-
InstrumentationLibraryLogs.create = function create(properties) {
|
|
12130
|
-
return new InstrumentationLibraryLogs(properties);
|
|
12131
|
-
};
|
|
12132
|
-
/**
|
|
12133
|
-
* Encodes the specified InstrumentationLibraryLogs message. Does not implicitly {@link opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.verify|verify} messages.
|
|
12134
|
-
* @function encode
|
|
12135
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12136
|
-
* @static
|
|
12137
|
-
* @param {opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs} message InstrumentationLibraryLogs message or plain object to encode
|
|
12138
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12139
|
-
* @returns {$protobuf.Writer} Writer
|
|
12140
|
-
*/
|
|
12141
|
-
InstrumentationLibraryLogs.encode = function encode(message, writer) {
|
|
12142
|
-
if (!writer)
|
|
12143
|
-
writer = $Writer.create();
|
|
12144
|
-
if (message.instrumentationLibrary != null && Object.hasOwnProperty.call(message, "instrumentationLibrary"))
|
|
12145
|
-
$root.opentelemetry.proto.common.v1.InstrumentationLibrary.encode(message.instrumentationLibrary, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();
|
|
12146
|
-
if (message.logRecords != null && message.logRecords.length)
|
|
12147
|
-
for (var i = 0; i < message.logRecords.length; ++i)
|
|
12148
|
-
$root.opentelemetry.proto.logs.v1.LogRecord.encode(message.logRecords[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();
|
|
12149
|
-
if (message.schemaUrl != null && Object.hasOwnProperty.call(message, "schemaUrl"))
|
|
12150
|
-
writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.schemaUrl);
|
|
12151
|
-
return writer;
|
|
12152
|
-
};
|
|
12153
|
-
/**
|
|
12154
|
-
* Encodes the specified InstrumentationLibraryLogs message, length delimited. Does not implicitly {@link opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.verify|verify} messages.
|
|
12155
|
-
* @function encodeDelimited
|
|
12156
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12157
|
-
* @static
|
|
12158
|
-
* @param {opentelemetry.proto.logs.v1.IInstrumentationLibraryLogs} message InstrumentationLibraryLogs message or plain object to encode
|
|
12159
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12160
|
-
* @returns {$protobuf.Writer} Writer
|
|
12161
|
-
*/
|
|
12162
|
-
InstrumentationLibraryLogs.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12163
|
-
return this.encode(message, writer).ldelim();
|
|
12164
|
-
};
|
|
12165
|
-
/**
|
|
12166
|
-
* Decodes an InstrumentationLibraryLogs message from the specified reader or buffer.
|
|
12167
|
-
* @function decode
|
|
12168
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12169
|
-
* @static
|
|
12170
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12171
|
-
* @param {number} [length] Message length if known beforehand
|
|
12172
|
-
* @returns {opentelemetry.proto.logs.v1.InstrumentationLibraryLogs} InstrumentationLibraryLogs
|
|
12173
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12174
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12175
|
-
*/
|
|
12176
|
-
InstrumentationLibraryLogs.decode = function decode(reader, length) {
|
|
12177
|
-
if (!(reader instanceof $Reader))
|
|
12178
|
-
reader = $Reader.create(reader);
|
|
12179
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs();
|
|
12180
|
-
while (reader.pos < end) {
|
|
12181
|
-
var tag = reader.uint32();
|
|
12182
|
-
switch (tag >>> 3) {
|
|
12183
|
-
case 1: {
|
|
12184
|
-
message.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.decode(reader, reader.uint32());
|
|
12185
|
-
break;
|
|
12186
|
-
}
|
|
12187
|
-
case 2: {
|
|
12188
|
-
if (!(message.logRecords && message.logRecords.length))
|
|
12189
|
-
message.logRecords = [];
|
|
12190
|
-
message.logRecords.push($root.opentelemetry.proto.logs.v1.LogRecord.decode(reader, reader.uint32()));
|
|
12191
|
-
break;
|
|
12192
|
-
}
|
|
12193
|
-
case 3: {
|
|
12194
|
-
message.schemaUrl = reader.string();
|
|
12195
|
-
break;
|
|
12196
|
-
}
|
|
12197
|
-
default:
|
|
12198
|
-
reader.skipType(tag & 7);
|
|
12199
|
-
break;
|
|
12200
|
-
}
|
|
12201
|
-
}
|
|
12202
|
-
return message;
|
|
12203
|
-
};
|
|
12204
|
-
/**
|
|
12205
|
-
* Decodes an InstrumentationLibraryLogs message from the specified reader or buffer, length delimited.
|
|
12206
|
-
* @function decodeDelimited
|
|
12207
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12208
|
-
* @static
|
|
12209
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12210
|
-
* @returns {opentelemetry.proto.logs.v1.InstrumentationLibraryLogs} InstrumentationLibraryLogs
|
|
12211
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12212
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12213
|
-
*/
|
|
12214
|
-
InstrumentationLibraryLogs.decodeDelimited = function decodeDelimited(reader) {
|
|
12215
|
-
if (!(reader instanceof $Reader))
|
|
12216
|
-
reader = new $Reader(reader);
|
|
12217
|
-
return this.decode(reader, reader.uint32());
|
|
12218
|
-
};
|
|
12219
|
-
/**
|
|
12220
|
-
* Verifies an InstrumentationLibraryLogs message.
|
|
12221
|
-
* @function verify
|
|
12222
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12223
|
-
* @static
|
|
12224
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
12225
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12226
|
-
*/
|
|
12227
|
-
InstrumentationLibraryLogs.verify = function verify(message) {
|
|
12228
|
-
if (typeof message !== "object" || message === null)
|
|
12229
|
-
return "object expected";
|
|
12230
|
-
if (message.instrumentationLibrary != null && message.hasOwnProperty("instrumentationLibrary")) {
|
|
12231
|
-
var error = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.verify(message.instrumentationLibrary);
|
|
12232
|
-
if (error)
|
|
12233
|
-
return "instrumentationLibrary." + error;
|
|
12234
|
-
}
|
|
12235
|
-
if (message.logRecords != null && message.hasOwnProperty("logRecords")) {
|
|
12236
|
-
if (!Array.isArray(message.logRecords))
|
|
12237
|
-
return "logRecords: array expected";
|
|
12238
|
-
for (var i = 0; i < message.logRecords.length; ++i) {
|
|
12239
|
-
var error = $root.opentelemetry.proto.logs.v1.LogRecord.verify(message.logRecords[i]);
|
|
12240
|
-
if (error)
|
|
12241
|
-
return "logRecords." + error;
|
|
12242
|
-
}
|
|
12243
|
-
}
|
|
12244
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
12245
|
-
if (!$util.isString(message.schemaUrl))
|
|
12246
|
-
return "schemaUrl: string expected";
|
|
12247
|
-
return null;
|
|
12248
|
-
};
|
|
12249
|
-
/**
|
|
12250
|
-
* Creates an InstrumentationLibraryLogs message from a plain object. Also converts values to their respective internal types.
|
|
12251
|
-
* @function fromObject
|
|
12252
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12253
|
-
* @static
|
|
12254
|
-
* @param {Object.<string,*>} object Plain object
|
|
12255
|
-
* @returns {opentelemetry.proto.logs.v1.InstrumentationLibraryLogs} InstrumentationLibraryLogs
|
|
12256
|
-
*/
|
|
12257
|
-
InstrumentationLibraryLogs.fromObject = function fromObject(object) {
|
|
12258
|
-
if (object instanceof $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs)
|
|
12259
|
-
return object;
|
|
12260
|
-
var message = new $root.opentelemetry.proto.logs.v1.InstrumentationLibraryLogs();
|
|
12261
|
-
if (object.instrumentationLibrary != null) {
|
|
12262
|
-
if (typeof object.instrumentationLibrary !== "object")
|
|
12263
|
-
throw TypeError(".opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.instrumentationLibrary: object expected");
|
|
12264
|
-
message.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.fromObject(object.instrumentationLibrary);
|
|
12265
|
-
}
|
|
12266
|
-
if (object.logRecords) {
|
|
12267
|
-
if (!Array.isArray(object.logRecords))
|
|
12268
|
-
throw TypeError(".opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.logRecords: array expected");
|
|
12269
|
-
message.logRecords = [];
|
|
12270
|
-
for (var i = 0; i < object.logRecords.length; ++i) {
|
|
12271
|
-
if (typeof object.logRecords[i] !== "object")
|
|
12272
|
-
throw TypeError(".opentelemetry.proto.logs.v1.InstrumentationLibraryLogs.logRecords: object expected");
|
|
12273
|
-
message.logRecords[i] = $root.opentelemetry.proto.logs.v1.LogRecord.fromObject(object.logRecords[i]);
|
|
12274
|
-
}
|
|
12275
|
-
}
|
|
12276
|
-
if (object.schemaUrl != null)
|
|
12277
|
-
message.schemaUrl = String(object.schemaUrl);
|
|
12278
|
-
return message;
|
|
12279
|
-
};
|
|
12280
|
-
/**
|
|
12281
|
-
* Creates a plain object from an InstrumentationLibraryLogs message. Also converts values to other types if specified.
|
|
12282
|
-
* @function toObject
|
|
12283
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12284
|
-
* @static
|
|
12285
|
-
* @param {opentelemetry.proto.logs.v1.InstrumentationLibraryLogs} message InstrumentationLibraryLogs
|
|
12286
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12287
|
-
* @returns {Object.<string,*>} Plain object
|
|
12288
|
-
*/
|
|
12289
|
-
InstrumentationLibraryLogs.toObject = function toObject(message, options) {
|
|
12290
|
-
if (!options)
|
|
12291
|
-
options = {};
|
|
12292
|
-
var object = {};
|
|
12293
|
-
if (options.arrays || options.defaults)
|
|
12294
|
-
object.logRecords = [];
|
|
12295
|
-
if (options.defaults) {
|
|
12296
|
-
object.instrumentationLibrary = null;
|
|
12297
|
-
object.schemaUrl = "";
|
|
12298
|
-
}
|
|
12299
|
-
if (message.instrumentationLibrary != null && message.hasOwnProperty("instrumentationLibrary"))
|
|
12300
|
-
object.instrumentationLibrary = $root.opentelemetry.proto.common.v1.InstrumentationLibrary.toObject(message.instrumentationLibrary, options);
|
|
12301
|
-
if (message.logRecords && message.logRecords.length) {
|
|
12302
|
-
object.logRecords = [];
|
|
12303
|
-
for (var j = 0; j < message.logRecords.length; ++j)
|
|
12304
|
-
object.logRecords[j] = $root.opentelemetry.proto.logs.v1.LogRecord.toObject(message.logRecords[j], options);
|
|
12305
|
-
}
|
|
12306
|
-
if (message.schemaUrl != null && message.hasOwnProperty("schemaUrl"))
|
|
12307
|
-
object.schemaUrl = message.schemaUrl;
|
|
12308
|
-
return object;
|
|
12309
|
-
};
|
|
12310
|
-
/**
|
|
12311
|
-
* Converts this InstrumentationLibraryLogs to JSON.
|
|
12312
|
-
* @function toJSON
|
|
12313
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12314
|
-
* @instance
|
|
12315
|
-
* @returns {Object.<string,*>} JSON object
|
|
12316
|
-
*/
|
|
12317
|
-
InstrumentationLibraryLogs.prototype.toJSON = function toJSON() {
|
|
12318
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12319
|
-
};
|
|
12320
|
-
/**
|
|
12321
|
-
* Gets the default type url for InstrumentationLibraryLogs
|
|
12322
|
-
* @function getTypeUrl
|
|
12323
|
-
* @memberof opentelemetry.proto.logs.v1.InstrumentationLibraryLogs
|
|
12324
|
-
* @static
|
|
12325
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
12326
|
-
* @returns {string} The default type url
|
|
12327
|
-
*/
|
|
12328
|
-
InstrumentationLibraryLogs.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
12329
|
-
if (typeUrlPrefix === undefined) {
|
|
12330
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
12331
|
-
}
|
|
12332
|
-
return typeUrlPrefix + "/opentelemetry.proto.logs.v1.InstrumentationLibraryLogs";
|
|
12333
|
-
};
|
|
12334
|
-
return InstrumentationLibraryLogs;
|
|
12335
|
-
})();
|
|
12336
12075
|
/**
|
|
12337
12076
|
* SeverityNumber enum.
|
|
12338
12077
|
* @name opentelemetry.proto.logs.v1.SeverityNumber
|
|
@@ -12396,13 +12135,13 @@ $root.opentelemetry = (function () {
|
|
|
12396
12135
|
* LogRecordFlags enum.
|
|
12397
12136
|
* @name opentelemetry.proto.logs.v1.LogRecordFlags
|
|
12398
12137
|
* @enum {number}
|
|
12399
|
-
* @property {number}
|
|
12400
|
-
* @property {number}
|
|
12138
|
+
* @property {number} LOG_RECORD_FLAGS_DO_NOT_USE=0 LOG_RECORD_FLAGS_DO_NOT_USE value
|
|
12139
|
+
* @property {number} LOG_RECORD_FLAGS_TRACE_FLAGS_MASK=255 LOG_RECORD_FLAGS_TRACE_FLAGS_MASK value
|
|
12401
12140
|
*/
|
|
12402
12141
|
v1.LogRecordFlags = (function () {
|
|
12403
12142
|
var valuesById = {}, values = Object.create(valuesById);
|
|
12404
|
-
values[valuesById[0] = "
|
|
12405
|
-
values[valuesById[255] = "
|
|
12143
|
+
values[valuesById[0] = "LOG_RECORD_FLAGS_DO_NOT_USE"] = 0;
|
|
12144
|
+
values[valuesById[255] = "LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"] = 255;
|
|
12406
12145
|
return values;
|
|
12407
12146
|
})();
|
|
12408
12147
|
v1.LogRecord = (function () {
|