@miradorlabs/web-grpc 1.1.0 → 1.2.0
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/package.json
CHANGED
|
@@ -1514,6 +1514,8 @@ export interface TraceEventEnvelope {
|
|
|
1514
1514
|
category: TraceEventCategory;
|
|
1515
1515
|
/** Span this event belongs to ("" = trace-level) */
|
|
1516
1516
|
spanId: string;
|
|
1517
|
+
/** Parent of this event's span ("" = root / trace-level) */
|
|
1518
|
+
parentSpanId: string;
|
|
1517
1519
|
traceStarted?: TraceStarted | undefined;
|
|
1518
1520
|
traceFinished?: TraceFinished | undefined;
|
|
1519
1521
|
infoEventAdded?: InfoEventAdded | undefined;
|
|
@@ -6394,6 +6396,7 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
|
|
|
6394
6396
|
source: 0,
|
|
6395
6397
|
category: 0,
|
|
6396
6398
|
spanId: "",
|
|
6399
|
+
parentSpanId: "",
|
|
6397
6400
|
traceStarted: undefined,
|
|
6398
6401
|
traceFinished: undefined,
|
|
6399
6402
|
infoEventAdded: undefined,
|
|
@@ -6476,6 +6479,9 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
6476
6479
|
if (message.spanId !== "") {
|
|
6477
6480
|
writer.uint32(106).string(message.spanId);
|
|
6478
6481
|
}
|
|
6482
|
+
if (message.parentSpanId !== "") {
|
|
6483
|
+
writer.uint32(114).string(message.parentSpanId);
|
|
6484
|
+
}
|
|
6479
6485
|
if (message.traceStarted !== undefined) {
|
|
6480
6486
|
TraceStarted.encode(message.traceStarted, writer.uint32(162).fork()).join();
|
|
6481
6487
|
}
|
|
@@ -6706,6 +6712,14 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
6706
6712
|
message.spanId = reader.string();
|
|
6707
6713
|
continue;
|
|
6708
6714
|
}
|
|
6715
|
+
case 14: {
|
|
6716
|
+
if (tag !== 114) {
|
|
6717
|
+
break;
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
message.parentSpanId = reader.string();
|
|
6721
|
+
continue;
|
|
6722
|
+
}
|
|
6709
6723
|
case 20: {
|
|
6710
6724
|
if (tag !== 162) {
|
|
6711
6725
|
break;
|
|
@@ -7108,6 +7122,11 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7108
7122
|
: isSet(object.span_id)
|
|
7109
7123
|
? globalThis.String(object.span_id)
|
|
7110
7124
|
: "",
|
|
7125
|
+
parentSpanId: isSet(object.parentSpanId)
|
|
7126
|
+
? globalThis.String(object.parentSpanId)
|
|
7127
|
+
: isSet(object.parent_span_id)
|
|
7128
|
+
? globalThis.String(object.parent_span_id)
|
|
7129
|
+
: "",
|
|
7111
7130
|
traceStarted: isSet(object.traceStarted)
|
|
7112
7131
|
? TraceStarted.fromJSON(object.traceStarted)
|
|
7113
7132
|
: isSet(object.trace_started)
|
|
@@ -7366,6 +7385,9 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7366
7385
|
if (message.spanId !== "") {
|
|
7367
7386
|
obj.spanId = message.spanId;
|
|
7368
7387
|
}
|
|
7388
|
+
if (message.parentSpanId !== "") {
|
|
7389
|
+
obj.parentSpanId = message.parentSpanId;
|
|
7390
|
+
}
|
|
7369
7391
|
if (message.traceStarted !== undefined) {
|
|
7370
7392
|
obj.traceStarted = TraceStarted.toJSON(message.traceStarted);
|
|
7371
7393
|
}
|
|
@@ -7517,6 +7539,7 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
7517
7539
|
message.source = object.source ?? 0;
|
|
7518
7540
|
message.category = object.category ?? 0;
|
|
7519
7541
|
message.spanId = object.spanId ?? "";
|
|
7542
|
+
message.parentSpanId = object.parentSpanId ?? "";
|
|
7520
7543
|
message.traceStarted = (object.traceStarted !== undefined && object.traceStarted !== null)
|
|
7521
7544
|
? TraceStarted.fromPartial(object.traceStarted)
|
|
7522
7545
|
: undefined;
|
|
@@ -9564,6 +9564,7 @@ traceTimestamp: (f = msg.getTraceTimestamp()) && google_protobuf_timestamp_pb.Ti
|
|
|
9564
9564
|
source: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
9565
9565
|
category: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
9566
9566
|
spanId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
9567
|
+
parentSpanId: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
9567
9568
|
traceStarted: (f = msg.getTraceStarted()) && proto.gateway.web.v1.TraceStarted.toObject(includeInstance, f),
|
|
9568
9569
|
traceFinished: (f = msg.getTraceFinished()) && proto.gateway.web.v1.TraceFinished.toObject(includeInstance, f),
|
|
9569
9570
|
infoEventAdded: (f = msg.getInfoEventAdded()) && proto.gateway.web.v1.InfoEventAdded.toObject(includeInstance, f),
|
|
@@ -9690,6 +9691,10 @@ proto.gateway.web.v1.TraceEventEnvelope.deserializeBinaryFromReader = function(m
|
|
|
9690
9691
|
var value = /** @type {string} */ (reader.readString());
|
|
9691
9692
|
msg.setSpanId(value);
|
|
9692
9693
|
break;
|
|
9694
|
+
case 14:
|
|
9695
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9696
|
+
msg.setParentSpanId(value);
|
|
9697
|
+
break;
|
|
9693
9698
|
case 20:
|
|
9694
9699
|
var value = new proto.gateway.web.v1.TraceStarted;
|
|
9695
9700
|
reader.readMessage(value,proto.gateway.web.v1.TraceStarted.deserializeBinaryFromReader);
|
|
@@ -10018,6 +10023,13 @@ proto.gateway.web.v1.TraceEventEnvelope.serializeBinaryToWriter = function(messa
|
|
|
10018
10023
|
f
|
|
10019
10024
|
);
|
|
10020
10025
|
}
|
|
10026
|
+
f = message.getParentSpanId();
|
|
10027
|
+
if (f.length > 0) {
|
|
10028
|
+
writer.writeString(
|
|
10029
|
+
14,
|
|
10030
|
+
f
|
|
10031
|
+
);
|
|
10032
|
+
}
|
|
10021
10033
|
f = message.getTraceStarted();
|
|
10022
10034
|
if (f != null) {
|
|
10023
10035
|
writer.writeMessage(
|
|
@@ -10609,6 +10621,24 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSpanId = function(value) {
|
|
|
10609
10621
|
};
|
|
10610
10622
|
|
|
10611
10623
|
|
|
10624
|
+
/**
|
|
10625
|
+
* optional string parent_span_id = 14;
|
|
10626
|
+
* @return {string}
|
|
10627
|
+
*/
|
|
10628
|
+
proto.gateway.web.v1.TraceEventEnvelope.prototype.getParentSpanId = function() {
|
|
10629
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
10630
|
+
};
|
|
10631
|
+
|
|
10632
|
+
|
|
10633
|
+
/**
|
|
10634
|
+
* @param {string} value
|
|
10635
|
+
* @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
|
|
10636
|
+
*/
|
|
10637
|
+
proto.gateway.web.v1.TraceEventEnvelope.prototype.setParentSpanId = function(value) {
|
|
10638
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
10639
|
+
};
|
|
10640
|
+
|
|
10641
|
+
|
|
10612
10642
|
/**
|
|
10613
10643
|
* optional TraceStarted trace_started = 20;
|
|
10614
10644
|
* @return {?proto.gateway.web.v1.TraceStarted}
|