@miradorlabs/web-grpc 2.35.0 → 2.36.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
|
@@ -48,18 +48,18 @@ export function tagMatchModeToJSON(object: TagMatchMode): string {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
/**
|
|
52
|
+
* EventSource indicates the origin of a trace event — a trust class, not a domain. The observation
|
|
53
|
+
* domain (chain, wallet, payment, ...) lives on the event name/selector, not here.
|
|
54
|
+
*/
|
|
51
55
|
export enum EventSource {
|
|
52
56
|
EVENT_SOURCE_UNSPECIFIED = 0,
|
|
53
57
|
/** EVENT_SOURCE_CLIENT_WEB - Events from web SDK (mir_web_ keys) */
|
|
54
58
|
EVENT_SOURCE_CLIENT_WEB = 1,
|
|
55
|
-
/** EVENT_SOURCE_SYSTEM -
|
|
59
|
+
/** EVENT_SOURCE_SYSTEM - Platform-vouched events (system lifecycle, plugins, chain/wallet observations) */
|
|
56
60
|
EVENT_SOURCE_SYSTEM = 2,
|
|
57
61
|
/** EVENT_SOURCE_CLIENT_SERVER - Events from server SDK (mir_srv_ keys) */
|
|
58
62
|
EVENT_SOURCE_CLIENT_SERVER = 3,
|
|
59
|
-
/** EVENT_SOURCE_CHAIN - Chain-originated events (tx, receipts, bridges) */
|
|
60
|
-
EVENT_SOURCE_CHAIN = 4,
|
|
61
|
-
/** EVENT_SOURCE_WALLET - Wallet-originated events (Safe multisig tracking) */
|
|
62
|
-
EVENT_SOURCE_WALLET = 5,
|
|
63
63
|
UNRECOGNIZED = -1,
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -77,12 +77,6 @@ export function eventSourceFromJSON(object: any): EventSource {
|
|
|
77
77
|
case 3:
|
|
78
78
|
case "EVENT_SOURCE_CLIENT_SERVER":
|
|
79
79
|
return EventSource.EVENT_SOURCE_CLIENT_SERVER;
|
|
80
|
-
case 4:
|
|
81
|
-
case "EVENT_SOURCE_CHAIN":
|
|
82
|
-
return EventSource.EVENT_SOURCE_CHAIN;
|
|
83
|
-
case 5:
|
|
84
|
-
case "EVENT_SOURCE_WALLET":
|
|
85
|
-
return EventSource.EVENT_SOURCE_WALLET;
|
|
86
80
|
case -1:
|
|
87
81
|
case "UNRECOGNIZED":
|
|
88
82
|
default:
|
|
@@ -100,10 +94,6 @@ export function eventSourceToJSON(object: EventSource): string {
|
|
|
100
94
|
return "EVENT_SOURCE_SYSTEM";
|
|
101
95
|
case EventSource.EVENT_SOURCE_CLIENT_SERVER:
|
|
102
96
|
return "EVENT_SOURCE_CLIENT_SERVER";
|
|
103
|
-
case EventSource.EVENT_SOURCE_CHAIN:
|
|
104
|
-
return "EVENT_SOURCE_CHAIN";
|
|
105
|
-
case EventSource.EVENT_SOURCE_WALLET:
|
|
106
|
-
return "EVENT_SOURCE_WALLET";
|
|
107
97
|
case EventSource.UNRECOGNIZED:
|
|
108
98
|
default:
|
|
109
99
|
return "UNRECOGNIZED";
|
|
@@ -979,10 +969,6 @@ export interface TraceEventEnvelope {
|
|
|
979
969
|
source: EventSource;
|
|
980
970
|
/** Category of the event (lifecycle, event, metadata) */
|
|
981
971
|
category: TraceEventCategory;
|
|
982
|
-
/** Span this event belongs to ("" = trace-level) */
|
|
983
|
-
spanId: string;
|
|
984
|
-
/** Parent of this event's span ("" = root / trace-level) */
|
|
985
|
-
parentSpanId: string;
|
|
986
972
|
/**
|
|
987
973
|
* Per-event annotations. Distinct from trace attributes (TraceStarted/AttributesUpdated)
|
|
988
974
|
* and span attributes (SpanStarted) — this bag belongs to this one event occurrence.
|
|
@@ -1023,7 +1009,7 @@ export interface TraceStarted_AttributesEntry {
|
|
|
1023
1009
|
|
|
1024
1010
|
/** SpanStarted is emitted when a span opens. */
|
|
1025
1011
|
export interface SpanStarted {
|
|
1026
|
-
/** the span that opened
|
|
1012
|
+
/** the span that opened */
|
|
1027
1013
|
spanId: string;
|
|
1028
1014
|
/** empty/unset = root span */
|
|
1029
1015
|
parentSpanId?: string | undefined;
|
|
@@ -1039,7 +1025,7 @@ export interface SpanStarted_AttributesEntry {
|
|
|
1039
1025
|
|
|
1040
1026
|
/** SpanEnded is emitted when a span closes. */
|
|
1041
1027
|
export interface SpanEnded {
|
|
1042
|
-
/** the span that closed
|
|
1028
|
+
/** the span that closed */
|
|
1043
1029
|
spanId: string;
|
|
1044
1030
|
endTime:
|
|
1045
1031
|
| Date
|
|
@@ -1050,10 +1036,13 @@ export interface SpanEnded {
|
|
|
1050
1036
|
}
|
|
1051
1037
|
|
|
1052
1038
|
/**
|
|
1053
|
-
* EventAdded is the generic named observation
|
|
1054
|
-
*
|
|
1039
|
+
* EventAdded is the generic named observation. It may attach to a span (span_id set) or be
|
|
1040
|
+
* trace-level (span_id ""/unset). Its business data + selector live on the envelope (fields 11/12);
|
|
1041
|
+
* severity carries the client info/warn/error axis (NONE = neutral).
|
|
1055
1042
|
*/
|
|
1056
1043
|
export interface EventAdded {
|
|
1044
|
+
/** the span this observation attaches to ("" = trace-level) */
|
|
1045
|
+
spanId: string;
|
|
1057
1046
|
eventName: string;
|
|
1058
1047
|
details?:
|
|
1059
1048
|
| string
|
|
@@ -5236,8 +5225,6 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
|
|
|
5236
5225
|
traceTimestamp: undefined,
|
|
5237
5226
|
source: 0,
|
|
5238
5227
|
category: 0,
|
|
5239
|
-
spanId: "",
|
|
5240
|
-
parentSpanId: "",
|
|
5241
5228
|
attributes: {},
|
|
5242
5229
|
selector: "",
|
|
5243
5230
|
traceStarted: undefined,
|
|
@@ -5281,19 +5268,13 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
5281
5268
|
writer.uint32(72).int32(message.source);
|
|
5282
5269
|
}
|
|
5283
5270
|
if (message.category !== 0) {
|
|
5284
|
-
writer.uint32(
|
|
5285
|
-
}
|
|
5286
|
-
if (message.spanId !== "") {
|
|
5287
|
-
writer.uint32(106).string(message.spanId);
|
|
5288
|
-
}
|
|
5289
|
-
if (message.parentSpanId !== "") {
|
|
5290
|
-
writer.uint32(114).string(message.parentSpanId);
|
|
5271
|
+
writer.uint32(80).int32(message.category);
|
|
5291
5272
|
}
|
|
5292
5273
|
globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, AttributeValue]) => {
|
|
5293
|
-
TraceEventEnvelope_AttributesEntry.encode({ key: key as any, value }, writer.uint32(
|
|
5274
|
+
TraceEventEnvelope_AttributesEntry.encode({ key: key as any, value }, writer.uint32(90).fork()).join();
|
|
5294
5275
|
});
|
|
5295
5276
|
if (message.selector !== "") {
|
|
5296
|
-
writer.uint32(
|
|
5277
|
+
writer.uint32(98).string(message.selector);
|
|
5297
5278
|
}
|
|
5298
5279
|
if (message.traceStarted !== undefined) {
|
|
5299
5280
|
TraceStarted.encode(message.traceStarted, writer.uint32(162).fork()).join();
|
|
@@ -5407,43 +5388,27 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
5407
5388
|
message.source = reader.int32() as any;
|
|
5408
5389
|
continue;
|
|
5409
5390
|
}
|
|
5410
|
-
case
|
|
5411
|
-
if (tag !==
|
|
5391
|
+
case 10: {
|
|
5392
|
+
if (tag !== 80) {
|
|
5412
5393
|
break;
|
|
5413
5394
|
}
|
|
5414
5395
|
|
|
5415
5396
|
message.category = reader.int32() as any;
|
|
5416
5397
|
continue;
|
|
5417
5398
|
}
|
|
5418
|
-
case
|
|
5419
|
-
if (tag !==
|
|
5420
|
-
break;
|
|
5421
|
-
}
|
|
5422
|
-
|
|
5423
|
-
message.spanId = reader.string();
|
|
5424
|
-
continue;
|
|
5425
|
-
}
|
|
5426
|
-
case 14: {
|
|
5427
|
-
if (tag !== 114) {
|
|
5428
|
-
break;
|
|
5429
|
-
}
|
|
5430
|
-
|
|
5431
|
-
message.parentSpanId = reader.string();
|
|
5432
|
-
continue;
|
|
5433
|
-
}
|
|
5434
|
-
case 15: {
|
|
5435
|
-
if (tag !== 122) {
|
|
5399
|
+
case 11: {
|
|
5400
|
+
if (tag !== 90) {
|
|
5436
5401
|
break;
|
|
5437
5402
|
}
|
|
5438
5403
|
|
|
5439
|
-
const
|
|
5440
|
-
if (
|
|
5441
|
-
message.attributes[
|
|
5404
|
+
const entry11 = TraceEventEnvelope_AttributesEntry.decode(reader, reader.uint32());
|
|
5405
|
+
if (entry11.value !== undefined) {
|
|
5406
|
+
message.attributes[entry11.key] = entry11.value;
|
|
5442
5407
|
}
|
|
5443
5408
|
continue;
|
|
5444
5409
|
}
|
|
5445
|
-
case
|
|
5446
|
-
if (tag !==
|
|
5410
|
+
case 12: {
|
|
5411
|
+
if (tag !== 98) {
|
|
5447
5412
|
break;
|
|
5448
5413
|
}
|
|
5449
5414
|
|
|
@@ -5562,16 +5527,6 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
5562
5527
|
: undefined,
|
|
5563
5528
|
source: isSet(object.source) ? eventSourceFromJSON(object.source) : 0,
|
|
5564
5529
|
category: isSet(object.category) ? traceEventCategoryFromJSON(object.category) : 0,
|
|
5565
|
-
spanId: isSet(object.spanId)
|
|
5566
|
-
? globalThis.String(object.spanId)
|
|
5567
|
-
: isSet(object.span_id)
|
|
5568
|
-
? globalThis.String(object.span_id)
|
|
5569
|
-
: "",
|
|
5570
|
-
parentSpanId: isSet(object.parentSpanId)
|
|
5571
|
-
? globalThis.String(object.parentSpanId)
|
|
5572
|
-
: isSet(object.parent_span_id)
|
|
5573
|
-
? globalThis.String(object.parent_span_id)
|
|
5574
|
-
: "",
|
|
5575
5530
|
attributes: isObject(object.attributes)
|
|
5576
5531
|
? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
|
|
5577
5532
|
(acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => {
|
|
@@ -5662,12 +5617,6 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
5662
5617
|
if (message.category !== 0) {
|
|
5663
5618
|
obj.category = traceEventCategoryToJSON(message.category);
|
|
5664
5619
|
}
|
|
5665
|
-
if (message.spanId !== "") {
|
|
5666
|
-
obj.spanId = message.spanId;
|
|
5667
|
-
}
|
|
5668
|
-
if (message.parentSpanId !== "") {
|
|
5669
|
-
obj.parentSpanId = message.parentSpanId;
|
|
5670
|
-
}
|
|
5671
5620
|
if (message.attributes) {
|
|
5672
5621
|
const entries = globalThis.Object.entries(message.attributes) as [string, AttributeValue][];
|
|
5673
5622
|
if (entries.length > 0) {
|
|
@@ -5722,8 +5671,6 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
|
|
|
5722
5671
|
message.traceTimestamp = object.traceTimestamp ?? undefined;
|
|
5723
5672
|
message.source = object.source ?? 0;
|
|
5724
5673
|
message.category = object.category ?? 0;
|
|
5725
|
-
message.spanId = object.spanId ?? "";
|
|
5726
|
-
message.parentSpanId = object.parentSpanId ?? "";
|
|
5727
5674
|
message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, AttributeValue][]).reduce(
|
|
5728
5675
|
(acc: { [key: string]: AttributeValue }, [key, value]: [string, AttributeValue]) => {
|
|
5729
5676
|
if (value !== undefined) {
|
|
@@ -6472,22 +6419,25 @@ export const SpanEnded: MessageFns<SpanEnded> = {
|
|
|
6472
6419
|
};
|
|
6473
6420
|
|
|
6474
6421
|
function createBaseEventAdded(): EventAdded {
|
|
6475
|
-
return { eventName: "", details: undefined, clientTimestamp: undefined, severity: 0 };
|
|
6422
|
+
return { spanId: "", eventName: "", details: undefined, clientTimestamp: undefined, severity: 0 };
|
|
6476
6423
|
}
|
|
6477
6424
|
|
|
6478
6425
|
export const EventAdded: MessageFns<EventAdded> = {
|
|
6479
6426
|
encode(message: EventAdded, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6427
|
+
if (message.spanId !== "") {
|
|
6428
|
+
writer.uint32(10).string(message.spanId);
|
|
6429
|
+
}
|
|
6480
6430
|
if (message.eventName !== "") {
|
|
6481
|
-
writer.uint32(
|
|
6431
|
+
writer.uint32(18).string(message.eventName);
|
|
6482
6432
|
}
|
|
6483
6433
|
if (message.details !== undefined) {
|
|
6484
|
-
writer.uint32(
|
|
6434
|
+
writer.uint32(26).string(message.details);
|
|
6485
6435
|
}
|
|
6486
6436
|
if (message.clientTimestamp !== undefined) {
|
|
6487
|
-
Timestamp.encode(toTimestamp(message.clientTimestamp), writer.uint32(
|
|
6437
|
+
Timestamp.encode(toTimestamp(message.clientTimestamp), writer.uint32(34).fork()).join();
|
|
6488
6438
|
}
|
|
6489
6439
|
if (message.severity !== 0) {
|
|
6490
|
-
writer.uint32(
|
|
6440
|
+
writer.uint32(40).int32(message.severity);
|
|
6491
6441
|
}
|
|
6492
6442
|
return writer;
|
|
6493
6443
|
},
|
|
@@ -6510,7 +6460,7 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6510
6460
|
break;
|
|
6511
6461
|
}
|
|
6512
6462
|
|
|
6513
|
-
message.
|
|
6463
|
+
message.spanId = reader.string();
|
|
6514
6464
|
continue;
|
|
6515
6465
|
}
|
|
6516
6466
|
case 2: {
|
|
@@ -6518,7 +6468,7 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6518
6468
|
break;
|
|
6519
6469
|
}
|
|
6520
6470
|
|
|
6521
|
-
message.
|
|
6471
|
+
message.eventName = reader.string();
|
|
6522
6472
|
continue;
|
|
6523
6473
|
}
|
|
6524
6474
|
case 3: {
|
|
@@ -6526,11 +6476,19 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6526
6476
|
break;
|
|
6527
6477
|
}
|
|
6528
6478
|
|
|
6529
|
-
message.
|
|
6479
|
+
message.details = reader.string();
|
|
6530
6480
|
continue;
|
|
6531
6481
|
}
|
|
6532
6482
|
case 4: {
|
|
6533
|
-
if (tag !==
|
|
6483
|
+
if (tag !== 34) {
|
|
6484
|
+
break;
|
|
6485
|
+
}
|
|
6486
|
+
|
|
6487
|
+
message.clientTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6488
|
+
continue;
|
|
6489
|
+
}
|
|
6490
|
+
case 5: {
|
|
6491
|
+
if (tag !== 40) {
|
|
6534
6492
|
break;
|
|
6535
6493
|
}
|
|
6536
6494
|
|
|
@@ -6551,6 +6509,11 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6551
6509
|
|
|
6552
6510
|
fromJSON(object: any): EventAdded {
|
|
6553
6511
|
return {
|
|
6512
|
+
spanId: isSet(object.spanId)
|
|
6513
|
+
? globalThis.String(object.spanId)
|
|
6514
|
+
: isSet(object.span_id)
|
|
6515
|
+
? globalThis.String(object.span_id)
|
|
6516
|
+
: "",
|
|
6554
6517
|
eventName: isSet(object.eventName)
|
|
6555
6518
|
? globalThis.String(object.eventName)
|
|
6556
6519
|
: isSet(object.event_name)
|
|
@@ -6568,6 +6531,9 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6568
6531
|
|
|
6569
6532
|
toJSON(message: EventAdded): unknown {
|
|
6570
6533
|
const obj: any = {};
|
|
6534
|
+
if (message.spanId !== "") {
|
|
6535
|
+
obj.spanId = message.spanId;
|
|
6536
|
+
}
|
|
6571
6537
|
if (message.eventName !== "") {
|
|
6572
6538
|
obj.eventName = message.eventName;
|
|
6573
6539
|
}
|
|
@@ -6588,6 +6554,7 @@ export const EventAdded: MessageFns<EventAdded> = {
|
|
|
6588
6554
|
},
|
|
6589
6555
|
fromPartial<I extends Exact<DeepPartial<EventAdded>, I>>(object: I): EventAdded {
|
|
6590
6556
|
const message = createBaseEventAdded();
|
|
6557
|
+
message.spanId = object.spanId ?? "";
|
|
6591
6558
|
message.eventName = object.eventName ?? "";
|
|
6592
6559
|
message.details = object.details ?? undefined;
|
|
6593
6560
|
message.clientTimestamp = object.clientTimestamp ?? undefined;
|
|
@@ -8191,11 +8191,9 @@ version: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
|
8191
8191
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
8192
8192
|
traceTimestamp: (f = msg.getTraceTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
8193
8193
|
source: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
8194
|
-
category: jspb.Message.getFieldWithDefault(msg,
|
|
8195
|
-
spanId: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
8196
|
-
parentSpanId: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
8194
|
+
category: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
8197
8195
|
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, proto.gateway.web.v1.AttributeValue.toObject) : [],
|
|
8198
|
-
selector: jspb.Message.getFieldWithDefault(msg,
|
|
8196
|
+
selector: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
8199
8197
|
traceStarted: (f = msg.getTraceStarted()) && proto.gateway.web.v1.TraceStarted.toObject(includeInstance, f),
|
|
8200
8198
|
spanStarted: (f = msg.getSpanStarted()) && proto.gateway.web.v1.SpanStarted.toObject(includeInstance, f),
|
|
8201
8199
|
spanEnded: (f = msg.getSpanEnded()) && proto.gateway.web.v1.SpanEnded.toObject(includeInstance, f),
|
|
@@ -8278,25 +8276,17 @@ proto.gateway.web.v1.TraceEventEnvelope.deserializeBinaryFromReader = function(m
|
|
|
8278
8276
|
var value = /** @type {!proto.gateway.web.v1.EventSource} */ (reader.readEnum());
|
|
8279
8277
|
msg.setSource(value);
|
|
8280
8278
|
break;
|
|
8281
|
-
case
|
|
8279
|
+
case 10:
|
|
8282
8280
|
var value = /** @type {!proto.gateway.web.v1.TraceEventCategory} */ (reader.readEnum());
|
|
8283
8281
|
msg.setCategory(value);
|
|
8284
8282
|
break;
|
|
8285
|
-
case
|
|
8286
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8287
|
-
msg.setSpanId(value);
|
|
8288
|
-
break;
|
|
8289
|
-
case 14:
|
|
8290
|
-
var value = /** @type {string} */ (reader.readString());
|
|
8291
|
-
msg.setParentSpanId(value);
|
|
8292
|
-
break;
|
|
8293
|
-
case 15:
|
|
8283
|
+
case 11:
|
|
8294
8284
|
var value = msg.getAttributesMap();
|
|
8295
8285
|
reader.readMessage(value, function(message, reader) {
|
|
8296
8286
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.gateway.web.v1.AttributeValue.deserializeBinaryFromReader, "", new proto.gateway.web.v1.AttributeValue());
|
|
8297
8287
|
});
|
|
8298
8288
|
break;
|
|
8299
|
-
case
|
|
8289
|
+
case 12:
|
|
8300
8290
|
var value = /** @type {string} */ (reader.readString());
|
|
8301
8291
|
msg.setSelector(value);
|
|
8302
8292
|
break;
|
|
@@ -8437,32 +8427,18 @@ proto.gateway.web.v1.TraceEventEnvelope.serializeBinaryToWriter = function(messa
|
|
|
8437
8427
|
f = message.getCategory();
|
|
8438
8428
|
if (f !== 0.0) {
|
|
8439
8429
|
writer.writeEnum(
|
|
8440
|
-
|
|
8441
|
-
f
|
|
8442
|
-
);
|
|
8443
|
-
}
|
|
8444
|
-
f = message.getSpanId();
|
|
8445
|
-
if (f.length > 0) {
|
|
8446
|
-
writer.writeString(
|
|
8447
|
-
13,
|
|
8448
|
-
f
|
|
8449
|
-
);
|
|
8450
|
-
}
|
|
8451
|
-
f = message.getParentSpanId();
|
|
8452
|
-
if (f.length > 0) {
|
|
8453
|
-
writer.writeString(
|
|
8454
|
-
14,
|
|
8430
|
+
10,
|
|
8455
8431
|
f
|
|
8456
8432
|
);
|
|
8457
8433
|
}
|
|
8458
8434
|
f = message.getAttributesMap(true);
|
|
8459
8435
|
if (f && f.getLength() > 0) {
|
|
8460
|
-
f.serializeBinary(
|
|
8436
|
+
f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.gateway.web.v1.AttributeValue.serializeBinaryToWriter);
|
|
8461
8437
|
}
|
|
8462
8438
|
f = message.getSelector();
|
|
8463
8439
|
if (f.length > 0) {
|
|
8464
8440
|
writer.writeString(
|
|
8465
|
-
|
|
8441
|
+
12,
|
|
8466
8442
|
f
|
|
8467
8443
|
);
|
|
8468
8444
|
}
|
|
@@ -8734,11 +8710,11 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSource = function(value) {
|
|
|
8734
8710
|
|
|
8735
8711
|
|
|
8736
8712
|
/**
|
|
8737
|
-
* optional TraceEventCategory category =
|
|
8713
|
+
* optional TraceEventCategory category = 10;
|
|
8738
8714
|
* @return {!proto.gateway.web.v1.TraceEventCategory}
|
|
8739
8715
|
*/
|
|
8740
8716
|
proto.gateway.web.v1.TraceEventEnvelope.prototype.getCategory = function() {
|
|
8741
|
-
return /** @type {!proto.gateway.web.v1.TraceEventCategory} */ (jspb.Message.getFieldWithDefault(this,
|
|
8717
|
+
return /** @type {!proto.gateway.web.v1.TraceEventCategory} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
8742
8718
|
};
|
|
8743
8719
|
|
|
8744
8720
|
|
|
@@ -8747,55 +8723,19 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.getCategory = function() {
|
|
|
8747
8723
|
* @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
|
|
8748
8724
|
*/
|
|
8749
8725
|
proto.gateway.web.v1.TraceEventEnvelope.prototype.setCategory = function(value) {
|
|
8750
|
-
return jspb.Message.setProto3EnumField(this,
|
|
8751
|
-
};
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
/**
|
|
8755
|
-
* optional string span_id = 13;
|
|
8756
|
-
* @return {string}
|
|
8757
|
-
*/
|
|
8758
|
-
proto.gateway.web.v1.TraceEventEnvelope.prototype.getSpanId = function() {
|
|
8759
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
8760
|
-
};
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
/**
|
|
8764
|
-
* @param {string} value
|
|
8765
|
-
* @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
|
|
8766
|
-
*/
|
|
8767
|
-
proto.gateway.web.v1.TraceEventEnvelope.prototype.setSpanId = function(value) {
|
|
8768
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
8769
|
-
};
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
/**
|
|
8773
|
-
* optional string parent_span_id = 14;
|
|
8774
|
-
* @return {string}
|
|
8775
|
-
*/
|
|
8776
|
-
proto.gateway.web.v1.TraceEventEnvelope.prototype.getParentSpanId = function() {
|
|
8777
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
8726
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
8778
8727
|
};
|
|
8779
8728
|
|
|
8780
8729
|
|
|
8781
8730
|
/**
|
|
8782
|
-
*
|
|
8783
|
-
* @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
|
|
8784
|
-
*/
|
|
8785
|
-
proto.gateway.web.v1.TraceEventEnvelope.prototype.setParentSpanId = function(value) {
|
|
8786
|
-
return jspb.Message.setProto3StringField(this, 14, value);
|
|
8787
|
-
};
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
/**
|
|
8791
|
-
* map<string, AttributeValue> attributes = 15;
|
|
8731
|
+
* map<string, AttributeValue> attributes = 11;
|
|
8792
8732
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
8793
8733
|
* empty, instead returning `undefined`
|
|
8794
8734
|
* @return {!jspb.Map<string,!proto.gateway.web.v1.AttributeValue>}
|
|
8795
8735
|
*/
|
|
8796
8736
|
proto.gateway.web.v1.TraceEventEnvelope.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
8797
8737
|
return /** @type {!jspb.Map<string,!proto.gateway.web.v1.AttributeValue>} */ (
|
|
8798
|
-
jspb.Message.getMapField(this,
|
|
8738
|
+
jspb.Message.getMapField(this, 11, opt_noLazyCreate,
|
|
8799
8739
|
proto.gateway.web.v1.AttributeValue));
|
|
8800
8740
|
};
|
|
8801
8741
|
|
|
@@ -8811,11 +8751,11 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.clearAttributesMap = function(
|
|
|
8811
8751
|
|
|
8812
8752
|
|
|
8813
8753
|
/**
|
|
8814
|
-
* optional string selector =
|
|
8754
|
+
* optional string selector = 12;
|
|
8815
8755
|
* @return {string}
|
|
8816
8756
|
*/
|
|
8817
8757
|
proto.gateway.web.v1.TraceEventEnvelope.prototype.getSelector = function() {
|
|
8818
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
8758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
8819
8759
|
};
|
|
8820
8760
|
|
|
8821
8761
|
|
|
@@ -8824,7 +8764,7 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.getSelector = function() {
|
|
|
8824
8764
|
* @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
|
|
8825
8765
|
*/
|
|
8826
8766
|
proto.gateway.web.v1.TraceEventEnvelope.prototype.setSelector = function(value) {
|
|
8827
|
-
return jspb.Message.setProto3StringField(this,
|
|
8767
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
8828
8768
|
};
|
|
8829
8769
|
|
|
8830
8770
|
|
|
@@ -9920,10 +9860,11 @@ proto.gateway.web.v1.EventAdded.prototype.toObject = function(opt_includeInstanc
|
|
|
9920
9860
|
*/
|
|
9921
9861
|
proto.gateway.web.v1.EventAdded.toObject = function(includeInstance, msg) {
|
|
9922
9862
|
var f, obj = {
|
|
9923
|
-
|
|
9924
|
-
|
|
9863
|
+
spanId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9864
|
+
eventName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9865
|
+
details: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
9925
9866
|
clientTimestamp: (f = msg.getClientTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
9926
|
-
severity: jspb.Message.getFieldWithDefault(msg,
|
|
9867
|
+
severity: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
9927
9868
|
};
|
|
9928
9869
|
|
|
9929
9870
|
if (includeInstance) {
|
|
@@ -9962,18 +9903,22 @@ proto.gateway.web.v1.EventAdded.deserializeBinaryFromReader = function(msg, read
|
|
|
9962
9903
|
switch (field) {
|
|
9963
9904
|
case 1:
|
|
9964
9905
|
var value = /** @type {string} */ (reader.readString());
|
|
9965
|
-
msg.
|
|
9906
|
+
msg.setSpanId(value);
|
|
9966
9907
|
break;
|
|
9967
9908
|
case 2:
|
|
9968
9909
|
var value = /** @type {string} */ (reader.readString());
|
|
9969
|
-
msg.
|
|
9910
|
+
msg.setEventName(value);
|
|
9970
9911
|
break;
|
|
9971
9912
|
case 3:
|
|
9913
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9914
|
+
msg.setDetails(value);
|
|
9915
|
+
break;
|
|
9916
|
+
case 4:
|
|
9972
9917
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
9973
9918
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
9974
9919
|
msg.setClientTimestamp(value);
|
|
9975
9920
|
break;
|
|
9976
|
-
case
|
|
9921
|
+
case 5:
|
|
9977
9922
|
var value = /** @type {!proto.gateway.web.v1.TraceSeverity} */ (reader.readEnum());
|
|
9978
9923
|
msg.setSeverity(value);
|
|
9979
9924
|
break;
|
|
@@ -10006,24 +9951,31 @@ proto.gateway.web.v1.EventAdded.prototype.serializeBinary = function() {
|
|
|
10006
9951
|
*/
|
|
10007
9952
|
proto.gateway.web.v1.EventAdded.serializeBinaryToWriter = function(message, writer) {
|
|
10008
9953
|
var f = undefined;
|
|
10009
|
-
f = message.
|
|
9954
|
+
f = message.getSpanId();
|
|
10010
9955
|
if (f.length > 0) {
|
|
10011
9956
|
writer.writeString(
|
|
10012
9957
|
1,
|
|
10013
9958
|
f
|
|
10014
9959
|
);
|
|
10015
9960
|
}
|
|
10016
|
-
f =
|
|
10017
|
-
if (f
|
|
9961
|
+
f = message.getEventName();
|
|
9962
|
+
if (f.length > 0) {
|
|
10018
9963
|
writer.writeString(
|
|
10019
9964
|
2,
|
|
10020
9965
|
f
|
|
10021
9966
|
);
|
|
10022
9967
|
}
|
|
9968
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
9969
|
+
if (f != null) {
|
|
9970
|
+
writer.writeString(
|
|
9971
|
+
3,
|
|
9972
|
+
f
|
|
9973
|
+
);
|
|
9974
|
+
}
|
|
10023
9975
|
f = message.getClientTimestamp();
|
|
10024
9976
|
if (f != null) {
|
|
10025
9977
|
writer.writeMessage(
|
|
10026
|
-
|
|
9978
|
+
4,
|
|
10027
9979
|
f,
|
|
10028
9980
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
10029
9981
|
);
|
|
@@ -10031,7 +9983,7 @@ proto.gateway.web.v1.EventAdded.serializeBinaryToWriter = function(message, writ
|
|
|
10031
9983
|
f = message.getSeverity();
|
|
10032
9984
|
if (f !== 0.0) {
|
|
10033
9985
|
writer.writeEnum(
|
|
10034
|
-
|
|
9986
|
+
5,
|
|
10035
9987
|
f
|
|
10036
9988
|
);
|
|
10037
9989
|
}
|
|
@@ -10039,10 +9991,10 @@ proto.gateway.web.v1.EventAdded.serializeBinaryToWriter = function(message, writ
|
|
|
10039
9991
|
|
|
10040
9992
|
|
|
10041
9993
|
/**
|
|
10042
|
-
* optional string
|
|
9994
|
+
* optional string span_id = 1;
|
|
10043
9995
|
* @return {string}
|
|
10044
9996
|
*/
|
|
10045
|
-
proto.gateway.web.v1.EventAdded.prototype.
|
|
9997
|
+
proto.gateway.web.v1.EventAdded.prototype.getSpanId = function() {
|
|
10046
9998
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10047
9999
|
};
|
|
10048
10000
|
|
|
@@ -10051,26 +10003,44 @@ proto.gateway.web.v1.EventAdded.prototype.getEventName = function() {
|
|
|
10051
10003
|
* @param {string} value
|
|
10052
10004
|
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10053
10005
|
*/
|
|
10054
|
-
proto.gateway.web.v1.EventAdded.prototype.
|
|
10006
|
+
proto.gateway.web.v1.EventAdded.prototype.setSpanId = function(value) {
|
|
10055
10007
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10056
10008
|
};
|
|
10057
10009
|
|
|
10058
10010
|
|
|
10059
10011
|
/**
|
|
10060
|
-
* optional string
|
|
10012
|
+
* optional string event_name = 2;
|
|
10061
10013
|
* @return {string}
|
|
10062
10014
|
*/
|
|
10063
|
-
proto.gateway.web.v1.EventAdded.prototype.
|
|
10015
|
+
proto.gateway.web.v1.EventAdded.prototype.getEventName = function() {
|
|
10064
10016
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10065
10017
|
};
|
|
10066
10018
|
|
|
10067
10019
|
|
|
10020
|
+
/**
|
|
10021
|
+
* @param {string} value
|
|
10022
|
+
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10023
|
+
*/
|
|
10024
|
+
proto.gateway.web.v1.EventAdded.prototype.setEventName = function(value) {
|
|
10025
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10026
|
+
};
|
|
10027
|
+
|
|
10028
|
+
|
|
10029
|
+
/**
|
|
10030
|
+
* optional string details = 3;
|
|
10031
|
+
* @return {string}
|
|
10032
|
+
*/
|
|
10033
|
+
proto.gateway.web.v1.EventAdded.prototype.getDetails = function() {
|
|
10034
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
10035
|
+
};
|
|
10036
|
+
|
|
10037
|
+
|
|
10068
10038
|
/**
|
|
10069
10039
|
* @param {string} value
|
|
10070
10040
|
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10071
10041
|
*/
|
|
10072
10042
|
proto.gateway.web.v1.EventAdded.prototype.setDetails = function(value) {
|
|
10073
|
-
return jspb.Message.setField(this,
|
|
10043
|
+
return jspb.Message.setField(this, 3, value);
|
|
10074
10044
|
};
|
|
10075
10045
|
|
|
10076
10046
|
|
|
@@ -10079,7 +10049,7 @@ proto.gateway.web.v1.EventAdded.prototype.setDetails = function(value) {
|
|
|
10079
10049
|
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10080
10050
|
*/
|
|
10081
10051
|
proto.gateway.web.v1.EventAdded.prototype.clearDetails = function() {
|
|
10082
|
-
return jspb.Message.setField(this,
|
|
10052
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
10083
10053
|
};
|
|
10084
10054
|
|
|
10085
10055
|
|
|
@@ -10088,17 +10058,17 @@ proto.gateway.web.v1.EventAdded.prototype.clearDetails = function() {
|
|
|
10088
10058
|
* @return {boolean}
|
|
10089
10059
|
*/
|
|
10090
10060
|
proto.gateway.web.v1.EventAdded.prototype.hasDetails = function() {
|
|
10091
|
-
return jspb.Message.getField(this,
|
|
10061
|
+
return jspb.Message.getField(this, 3) != null;
|
|
10092
10062
|
};
|
|
10093
10063
|
|
|
10094
10064
|
|
|
10095
10065
|
/**
|
|
10096
|
-
* optional google.protobuf.Timestamp client_timestamp =
|
|
10066
|
+
* optional google.protobuf.Timestamp client_timestamp = 4;
|
|
10097
10067
|
* @return {?proto.google.protobuf.Timestamp}
|
|
10098
10068
|
*/
|
|
10099
10069
|
proto.gateway.web.v1.EventAdded.prototype.getClientTimestamp = function() {
|
|
10100
10070
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
10101
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
10071
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
10102
10072
|
};
|
|
10103
10073
|
|
|
10104
10074
|
|
|
@@ -10107,7 +10077,7 @@ proto.gateway.web.v1.EventAdded.prototype.getClientTimestamp = function() {
|
|
|
10107
10077
|
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10108
10078
|
*/
|
|
10109
10079
|
proto.gateway.web.v1.EventAdded.prototype.setClientTimestamp = function(value) {
|
|
10110
|
-
return jspb.Message.setWrapperField(this,
|
|
10080
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
10111
10081
|
};
|
|
10112
10082
|
|
|
10113
10083
|
|
|
@@ -10125,16 +10095,16 @@ proto.gateway.web.v1.EventAdded.prototype.clearClientTimestamp = function() {
|
|
|
10125
10095
|
* @return {boolean}
|
|
10126
10096
|
*/
|
|
10127
10097
|
proto.gateway.web.v1.EventAdded.prototype.hasClientTimestamp = function() {
|
|
10128
|
-
return jspb.Message.getField(this,
|
|
10098
|
+
return jspb.Message.getField(this, 4) != null;
|
|
10129
10099
|
};
|
|
10130
10100
|
|
|
10131
10101
|
|
|
10132
10102
|
/**
|
|
10133
|
-
* optional TraceSeverity severity =
|
|
10103
|
+
* optional TraceSeverity severity = 5;
|
|
10134
10104
|
* @return {!proto.gateway.web.v1.TraceSeverity}
|
|
10135
10105
|
*/
|
|
10136
10106
|
proto.gateway.web.v1.EventAdded.prototype.getSeverity = function() {
|
|
10137
|
-
return /** @type {!proto.gateway.web.v1.TraceSeverity} */ (jspb.Message.getFieldWithDefault(this,
|
|
10107
|
+
return /** @type {!proto.gateway.web.v1.TraceSeverity} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
10138
10108
|
};
|
|
10139
10109
|
|
|
10140
10110
|
|
|
@@ -10143,7 +10113,7 @@ proto.gateway.web.v1.EventAdded.prototype.getSeverity = function() {
|
|
|
10143
10113
|
* @return {!proto.gateway.web.v1.EventAdded} returns this
|
|
10144
10114
|
*/
|
|
10145
10115
|
proto.gateway.web.v1.EventAdded.prototype.setSeverity = function(value) {
|
|
10146
|
-
return jspb.Message.setProto3EnumField(this,
|
|
10116
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
10147
10117
|
};
|
|
10148
10118
|
|
|
10149
10119
|
|
|
@@ -11165,9 +11135,7 @@ proto.gateway.web.v1.EventSource = {
|
|
|
11165
11135
|
EVENT_SOURCE_UNSPECIFIED: 0,
|
|
11166
11136
|
EVENT_SOURCE_CLIENT_WEB: 1,
|
|
11167
11137
|
EVENT_SOURCE_SYSTEM: 2,
|
|
11168
|
-
EVENT_SOURCE_CLIENT_SERVER: 3
|
|
11169
|
-
EVENT_SOURCE_CHAIN: 4,
|
|
11170
|
-
EVENT_SOURCE_WALLET: 5
|
|
11138
|
+
EVENT_SOURCE_CLIENT_SERVER: 3
|
|
11171
11139
|
};
|
|
11172
11140
|
|
|
11173
11141
|
/**
|