@miradorlabs/web-grpc 2.11.0 → 2.13.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -409,9 +409,20 @@ export interface DerivedMetricAttribute {
409
409
  }
410
410
 
411
411
  export interface DerivedMetricEventAttributes {
412
- /** The event's author-facing name; only info/warn/error events carry one. */
413
- name: string;
412
+ /**
413
+ * The bucket key: the event's sequencer-stamped selector (mirador_* platform slug, or the
414
+ * slugified author name for info/warn/error events).
415
+ */
416
+ selector: string;
414
417
  attributes: DerivedMetricAttribute[];
418
+ /**
419
+ * Raw author names observed under this selector (info/warn/error only; sorted, bounded).
420
+ * More than one means distinct spellings slugified to the same selector -- match a specific
421
+ * spelling with an e.name predicate.
422
+ */
423
+ observedNames: string[];
424
+ /** True when more raw names were seen than observed_names holds. */
425
+ observedNamesTruncated: boolean;
415
426
  }
416
427
 
417
428
  function createBaseDerivedMetric(): DerivedMetric {
@@ -2978,17 +2989,23 @@ export const DerivedMetricAttribute: MessageFns<DerivedMetricAttribute> = {
2978
2989
  };
2979
2990
 
2980
2991
  function createBaseDerivedMetricEventAttributes(): DerivedMetricEventAttributes {
2981
- return { name: "", attributes: [] };
2992
+ return { selector: "", attributes: [], observedNames: [], observedNamesTruncated: false };
2982
2993
  }
2983
2994
 
2984
2995
  export const DerivedMetricEventAttributes: MessageFns<DerivedMetricEventAttributes> = {
2985
2996
  encode(message: DerivedMetricEventAttributes, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2986
- if (message.name !== "") {
2987
- writer.uint32(10).string(message.name);
2997
+ if (message.selector !== "") {
2998
+ writer.uint32(10).string(message.selector);
2988
2999
  }
2989
3000
  for (const v of message.attributes) {
2990
3001
  DerivedMetricAttribute.encode(v!, writer.uint32(18).fork()).join();
2991
3002
  }
3003
+ for (const v of message.observedNames) {
3004
+ writer.uint32(26).string(v!);
3005
+ }
3006
+ if (message.observedNamesTruncated !== false) {
3007
+ writer.uint32(32).bool(message.observedNamesTruncated);
3008
+ }
2992
3009
  return writer;
2993
3010
  },
2994
3011
 
@@ -3004,7 +3021,7 @@ export const DerivedMetricEventAttributes: MessageFns<DerivedMetricEventAttribut
3004
3021
  break;
3005
3022
  }
3006
3023
 
3007
- message.name = reader.string();
3024
+ message.selector = reader.string();
3008
3025
  continue;
3009
3026
  }
3010
3027
  case 2: {
@@ -3015,6 +3032,22 @@ export const DerivedMetricEventAttributes: MessageFns<DerivedMetricEventAttribut
3015
3032
  message.attributes.push(DerivedMetricAttribute.decode(reader, reader.uint32()));
3016
3033
  continue;
3017
3034
  }
3035
+ case 3: {
3036
+ if (tag !== 26) {
3037
+ break;
3038
+ }
3039
+
3040
+ message.observedNames.push(reader.string());
3041
+ continue;
3042
+ }
3043
+ case 4: {
3044
+ if (tag !== 32) {
3045
+ break;
3046
+ }
3047
+
3048
+ message.observedNamesTruncated = reader.bool();
3049
+ continue;
3050
+ }
3018
3051
  }
3019
3052
  if ((tag & 7) === 4 || tag === 0) {
3020
3053
  break;
@@ -3026,21 +3059,37 @@ export const DerivedMetricEventAttributes: MessageFns<DerivedMetricEventAttribut
3026
3059
 
3027
3060
  fromJSON(object: any): DerivedMetricEventAttributes {
3028
3061
  return {
3029
- name: isSet(object.name) ? globalThis.String(object.name) : "",
3062
+ selector: isSet(object.selector) ? globalThis.String(object.selector) : "",
3030
3063
  attributes: globalThis.Array.isArray(object?.attributes)
3031
3064
  ? object.attributes.map((e: any) => DerivedMetricAttribute.fromJSON(e))
3032
3065
  : [],
3066
+ observedNames: globalThis.Array.isArray(object?.observedNames)
3067
+ ? object.observedNames.map((e: any) => globalThis.String(e))
3068
+ : globalThis.Array.isArray(object?.observed_names)
3069
+ ? object.observed_names.map((e: any) => globalThis.String(e))
3070
+ : [],
3071
+ observedNamesTruncated: isSet(object.observedNamesTruncated)
3072
+ ? globalThis.Boolean(object.observedNamesTruncated)
3073
+ : isSet(object.observed_names_truncated)
3074
+ ? globalThis.Boolean(object.observed_names_truncated)
3075
+ : false,
3033
3076
  };
3034
3077
  },
3035
3078
 
3036
3079
  toJSON(message: DerivedMetricEventAttributes): unknown {
3037
3080
  const obj: any = {};
3038
- if (message.name !== "") {
3039
- obj.name = message.name;
3081
+ if (message.selector !== "") {
3082
+ obj.selector = message.selector;
3040
3083
  }
3041
3084
  if (message.attributes?.length) {
3042
3085
  obj.attributes = message.attributes.map((e) => DerivedMetricAttribute.toJSON(e));
3043
3086
  }
3087
+ if (message.observedNames?.length) {
3088
+ obj.observedNames = message.observedNames;
3089
+ }
3090
+ if (message.observedNamesTruncated !== false) {
3091
+ obj.observedNamesTruncated = message.observedNamesTruncated;
3092
+ }
3044
3093
  return obj;
3045
3094
  },
3046
3095
 
@@ -3049,8 +3098,10 @@ export const DerivedMetricEventAttributes: MessageFns<DerivedMetricEventAttribut
3049
3098
  },
3050
3099
  fromPartial<I extends Exact<DeepPartial<DerivedMetricEventAttributes>, I>>(object: I): DerivedMetricEventAttributes {
3051
3100
  const message = createBaseDerivedMetricEventAttributes();
3052
- message.name = object.name ?? "";
3101
+ message.selector = object.selector ?? "";
3053
3102
  message.attributes = object.attributes?.map((e) => DerivedMetricAttribute.fromPartial(e)) || [];
3103
+ message.observedNames = object.observedNames?.map((e) => e) || [];
3104
+ message.observedNamesTruncated = object.observedNamesTruncated ?? false;
3054
3105
  return message;
3055
3106
  },
3056
3107
  };
@@ -5701,7 +5701,7 @@ proto.gateway.web.v1.DerivedMetricAttribute.prototype.clearSampleValuesList = fu
5701
5701
  * @private {!Array<number>}
5702
5702
  * @const
5703
5703
  */
5704
- proto.gateway.web.v1.DerivedMetricEventAttributes.repeatedFields_ = [2];
5704
+ proto.gateway.web.v1.DerivedMetricEventAttributes.repeatedFields_ = [2,3];
5705
5705
 
5706
5706
 
5707
5707
 
@@ -5734,9 +5734,11 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.toObject = function(
5734
5734
  */
5735
5735
  proto.gateway.web.v1.DerivedMetricEventAttributes.toObject = function(includeInstance, msg) {
5736
5736
  var f, obj = {
5737
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
5737
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
5738
5738
  attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
5739
- proto.gateway.web.v1.DerivedMetricAttribute.toObject, includeInstance)
5739
+ proto.gateway.web.v1.DerivedMetricAttribute.toObject, includeInstance),
5740
+ observedNamesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
5741
+ observedNamesTruncated: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
5740
5742
  };
5741
5743
 
5742
5744
  if (includeInstance) {
@@ -5775,13 +5777,21 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.deserializeBinaryFromReader =
5775
5777
  switch (field) {
5776
5778
  case 1:
5777
5779
  var value = /** @type {string} */ (reader.readString());
5778
- msg.setName(value);
5780
+ msg.setSelector(value);
5779
5781
  break;
5780
5782
  case 2:
5781
5783
  var value = new proto.gateway.web.v1.DerivedMetricAttribute;
5782
5784
  reader.readMessage(value,proto.gateway.web.v1.DerivedMetricAttribute.deserializeBinaryFromReader);
5783
5785
  msg.addAttributes(value);
5784
5786
  break;
5787
+ case 3:
5788
+ var value = /** @type {string} */ (reader.readString());
5789
+ msg.addObservedNames(value);
5790
+ break;
5791
+ case 4:
5792
+ var value = /** @type {boolean} */ (reader.readBool());
5793
+ msg.setObservedNamesTruncated(value);
5794
+ break;
5785
5795
  default:
5786
5796
  reader.skipField();
5787
5797
  break;
@@ -5811,7 +5821,7 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.serializeBinary = fu
5811
5821
  */
5812
5822
  proto.gateway.web.v1.DerivedMetricEventAttributes.serializeBinaryToWriter = function(message, writer) {
5813
5823
  var f = undefined;
5814
- f = message.getName();
5824
+ f = message.getSelector();
5815
5825
  if (f.length > 0) {
5816
5826
  writer.writeString(
5817
5827
  1,
@@ -5826,14 +5836,28 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.serializeBinaryToWriter = func
5826
5836
  proto.gateway.web.v1.DerivedMetricAttribute.serializeBinaryToWriter
5827
5837
  );
5828
5838
  }
5839
+ f = message.getObservedNamesList();
5840
+ if (f.length > 0) {
5841
+ writer.writeRepeatedString(
5842
+ 3,
5843
+ f
5844
+ );
5845
+ }
5846
+ f = message.getObservedNamesTruncated();
5847
+ if (f) {
5848
+ writer.writeBool(
5849
+ 4,
5850
+ f
5851
+ );
5852
+ }
5829
5853
  };
5830
5854
 
5831
5855
 
5832
5856
  /**
5833
- * optional string name = 1;
5857
+ * optional string selector = 1;
5834
5858
  * @return {string}
5835
5859
  */
5836
- proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.getName = function() {
5860
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.getSelector = function() {
5837
5861
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5838
5862
  };
5839
5863
 
@@ -5842,7 +5866,7 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.getName = function()
5842
5866
  * @param {string} value
5843
5867
  * @return {!proto.gateway.web.v1.DerivedMetricEventAttributes} returns this
5844
5868
  */
5845
- proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.setName = function(value) {
5869
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.setSelector = function(value) {
5846
5870
  return jspb.Message.setProto3StringField(this, 1, value);
5847
5871
  };
5848
5872
 
@@ -5885,6 +5909,61 @@ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.clearAttributesList
5885
5909
  };
5886
5910
 
5887
5911
 
5912
+ /**
5913
+ * repeated string observed_names = 3;
5914
+ * @return {!Array<string>}
5915
+ */
5916
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.getObservedNamesList = function() {
5917
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
5918
+ };
5919
+
5920
+
5921
+ /**
5922
+ * @param {!Array<string>} value
5923
+ * @return {!proto.gateway.web.v1.DerivedMetricEventAttributes} returns this
5924
+ */
5925
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.setObservedNamesList = function(value) {
5926
+ return jspb.Message.setField(this, 3, value || []);
5927
+ };
5928
+
5929
+
5930
+ /**
5931
+ * @param {string} value
5932
+ * @param {number=} opt_index
5933
+ * @return {!proto.gateway.web.v1.DerivedMetricEventAttributes} returns this
5934
+ */
5935
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.addObservedNames = function(value, opt_index) {
5936
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5937
+ };
5938
+
5939
+
5940
+ /**
5941
+ * Clears the list making it empty but non-null.
5942
+ * @return {!proto.gateway.web.v1.DerivedMetricEventAttributes} returns this
5943
+ */
5944
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.clearObservedNamesList = function() {
5945
+ return this.setObservedNamesList([]);
5946
+ };
5947
+
5948
+
5949
+ /**
5950
+ * optional bool observed_names_truncated = 4;
5951
+ * @return {boolean}
5952
+ */
5953
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.getObservedNamesTruncated = function() {
5954
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
5955
+ };
5956
+
5957
+
5958
+ /**
5959
+ * @param {boolean} value
5960
+ * @return {!proto.gateway.web.v1.DerivedMetricEventAttributes} returns this
5961
+ */
5962
+ proto.gateway.web.v1.DerivedMetricEventAttributes.prototype.setObservedNamesTruncated = function(value) {
5963
+ return jspb.Message.setProto3BooleanField(this, 4, value);
5964
+ };
5965
+
5966
+
5888
5967
  /**
5889
5968
  * @enum {number}
5890
5969
  */
@@ -1770,6 +1770,18 @@ export interface TraceEventEnvelope {
1770
1770
  spanId: string;
1771
1771
  /** Parent of this event's span ("" = root / trace-level) */
1772
1772
  parentSpanId: string;
1773
+ /**
1774
+ * Per-event annotations, rendered to strings server-side. Distinct from trace attributes
1775
+ * (TraceStarted/AttributesUpdated) and span attributes (SpanStarted) — this bag belongs to
1776
+ * this one event occurrence.
1777
+ */
1778
+ attributes: { [key: string]: string };
1779
+ /**
1780
+ * Deterministic kind identity, sequencer-stamped: a frozen mirador_* slug for platform
1781
+ * events, the slugified author name for info/warn/error. Empty on events written before
1782
+ * stamping existed — fall back to payload-type display logic, never derive a selector.
1783
+ */
1784
+ selector: string;
1773
1785
  traceStarted?: TraceStarted | undefined;
1774
1786
  traceFinished?: TraceFinished | undefined;
1775
1787
  infoEventAdded?: InfoEventAdded | undefined;
@@ -1823,6 +1835,11 @@ export interface TraceEventEnvelope {
1823
1835
  safeTxSuperseded?: SafeTxSuperseded | undefined;
1824
1836
  }
1825
1837
 
1838
+ export interface TraceEventEnvelope_AttributesEntry {
1839
+ key: string;
1840
+ value: string;
1841
+ }
1842
+
1826
1843
  /** SpanStarted is emitted when a span opens. */
1827
1844
  export interface SpanStarted {
1828
1845
  /** the span that opened; same value as the envelope span_id (field 13) */
@@ -6758,6 +6775,8 @@ function createBaseTraceEventEnvelope(): TraceEventEnvelope {
6758
6775
  category: 0,
6759
6776
  spanId: "",
6760
6777
  parentSpanId: "",
6778
+ attributes: {},
6779
+ selector: "",
6761
6780
  traceStarted: undefined,
6762
6781
  traceFinished: undefined,
6763
6782
  infoEventAdded: undefined,
@@ -6850,6 +6869,12 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
6850
6869
  if (message.parentSpanId !== "") {
6851
6870
  writer.uint32(114).string(message.parentSpanId);
6852
6871
  }
6872
+ globalThis.Object.entries(message.attributes).forEach(([key, value]: [string, string]) => {
6873
+ TraceEventEnvelope_AttributesEntry.encode({ key: key as any, value }, writer.uint32(122).fork()).join();
6874
+ });
6875
+ if (message.selector !== "") {
6876
+ writer.uint32(130).string(message.selector);
6877
+ }
6853
6878
  if (message.traceStarted !== undefined) {
6854
6879
  TraceStarted.encode(message.traceStarted, writer.uint32(162).fork()).join();
6855
6880
  }
@@ -7109,6 +7134,25 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7109
7134
  message.parentSpanId = reader.string();
7110
7135
  continue;
7111
7136
  }
7137
+ case 15: {
7138
+ if (tag !== 122) {
7139
+ break;
7140
+ }
7141
+
7142
+ const entry15 = TraceEventEnvelope_AttributesEntry.decode(reader, reader.uint32());
7143
+ if (entry15.value !== undefined) {
7144
+ message.attributes[entry15.key] = entry15.value;
7145
+ }
7146
+ continue;
7147
+ }
7148
+ case 16: {
7149
+ if (tag !== 130) {
7150
+ break;
7151
+ }
7152
+
7153
+ message.selector = reader.string();
7154
+ continue;
7155
+ }
7112
7156
  case 20: {
7113
7157
  if (tag !== 162) {
7114
7158
  break;
@@ -7572,6 +7616,16 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7572
7616
  : isSet(object.parent_span_id)
7573
7617
  ? globalThis.String(object.parent_span_id)
7574
7618
  : "",
7619
+ attributes: isObject(object.attributes)
7620
+ ? (globalThis.Object.entries(object.attributes) as [string, any][]).reduce(
7621
+ (acc: { [key: string]: string }, [key, value]: [string, any]) => {
7622
+ acc[key] = globalThis.String(value);
7623
+ return acc;
7624
+ },
7625
+ {},
7626
+ )
7627
+ : {},
7628
+ selector: isSet(object.selector) ? globalThis.String(object.selector) : "",
7575
7629
  traceStarted: isSet(object.traceStarted)
7576
7630
  ? TraceStarted.fromJSON(object.traceStarted)
7577
7631
  : isSet(object.trace_started)
@@ -7868,6 +7922,18 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
7868
7922
  if (message.parentSpanId !== "") {
7869
7923
  obj.parentSpanId = message.parentSpanId;
7870
7924
  }
7925
+ if (message.attributes) {
7926
+ const entries = globalThis.Object.entries(message.attributes) as [string, string][];
7927
+ if (entries.length > 0) {
7928
+ obj.attributes = {};
7929
+ entries.forEach(([k, v]) => {
7930
+ obj.attributes[k] = v;
7931
+ });
7932
+ }
7933
+ }
7934
+ if (message.selector !== "") {
7935
+ obj.selector = message.selector;
7936
+ }
7871
7937
  if (message.traceStarted !== undefined) {
7872
7938
  obj.traceStarted = TraceStarted.toJSON(message.traceStarted);
7873
7939
  }
@@ -8041,6 +8107,16 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8041
8107
  message.category = object.category ?? 0;
8042
8108
  message.spanId = object.spanId ?? "";
8043
8109
  message.parentSpanId = object.parentSpanId ?? "";
8110
+ message.attributes = (globalThis.Object.entries(object.attributes ?? {}) as [string, string][]).reduce(
8111
+ (acc: { [key: string]: string }, [key, value]: [string, string]) => {
8112
+ if (value !== undefined) {
8113
+ acc[key] = globalThis.String(value);
8114
+ }
8115
+ return acc;
8116
+ },
8117
+ {},
8118
+ );
8119
+ message.selector = object.selector ?? "";
8044
8120
  message.traceStarted = (object.traceStarted !== undefined && object.traceStarted !== null)
8045
8121
  ? TraceStarted.fromPartial(object.traceStarted)
8046
8122
  : undefined;
@@ -8207,6 +8283,86 @@ export const TraceEventEnvelope: MessageFns<TraceEventEnvelope> = {
8207
8283
  },
8208
8284
  };
8209
8285
 
8286
+ function createBaseTraceEventEnvelope_AttributesEntry(): TraceEventEnvelope_AttributesEntry {
8287
+ return { key: "", value: "" };
8288
+ }
8289
+
8290
+ export const TraceEventEnvelope_AttributesEntry: MessageFns<TraceEventEnvelope_AttributesEntry> = {
8291
+ encode(message: TraceEventEnvelope_AttributesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
8292
+ if (message.key !== "") {
8293
+ writer.uint32(10).string(message.key);
8294
+ }
8295
+ if (message.value !== "") {
8296
+ writer.uint32(18).string(message.value);
8297
+ }
8298
+ return writer;
8299
+ },
8300
+
8301
+ decode(input: BinaryReader | Uint8Array, length?: number): TraceEventEnvelope_AttributesEntry {
8302
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8303
+ const end = length === undefined ? reader.len : reader.pos + length;
8304
+ const message = createBaseTraceEventEnvelope_AttributesEntry();
8305
+ while (reader.pos < end) {
8306
+ const tag = reader.uint32();
8307
+ switch (tag >>> 3) {
8308
+ case 1: {
8309
+ if (tag !== 10) {
8310
+ break;
8311
+ }
8312
+
8313
+ message.key = reader.string();
8314
+ continue;
8315
+ }
8316
+ case 2: {
8317
+ if (tag !== 18) {
8318
+ break;
8319
+ }
8320
+
8321
+ message.value = reader.string();
8322
+ continue;
8323
+ }
8324
+ }
8325
+ if ((tag & 7) === 4 || tag === 0) {
8326
+ break;
8327
+ }
8328
+ reader.skip(tag & 7);
8329
+ }
8330
+ return message;
8331
+ },
8332
+
8333
+ fromJSON(object: any): TraceEventEnvelope_AttributesEntry {
8334
+ return {
8335
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
8336
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
8337
+ };
8338
+ },
8339
+
8340
+ toJSON(message: TraceEventEnvelope_AttributesEntry): unknown {
8341
+ const obj: any = {};
8342
+ if (message.key !== "") {
8343
+ obj.key = message.key;
8344
+ }
8345
+ if (message.value !== "") {
8346
+ obj.value = message.value;
8347
+ }
8348
+ return obj;
8349
+ },
8350
+
8351
+ create<I extends Exact<DeepPartial<TraceEventEnvelope_AttributesEntry>, I>>(
8352
+ base?: I,
8353
+ ): TraceEventEnvelope_AttributesEntry {
8354
+ return TraceEventEnvelope_AttributesEntry.fromPartial(base ?? ({} as any));
8355
+ },
8356
+ fromPartial<I extends Exact<DeepPartial<TraceEventEnvelope_AttributesEntry>, I>>(
8357
+ object: I,
8358
+ ): TraceEventEnvelope_AttributesEntry {
8359
+ const message = createBaseTraceEventEnvelope_AttributesEntry();
8360
+ message.key = object.key ?? "";
8361
+ message.value = object.value ?? "";
8362
+ return message;
8363
+ },
8364
+ };
8365
+
8210
8366
  function createBaseSpanStarted(): SpanStarted {
8211
8367
  return { spanId: "", parentSpanId: undefined, name: "", startTime: undefined, attributes: {} };
8212
8368
  }
@@ -9751,6 +9751,8 @@ source: jspb.Message.getFieldWithDefault(msg, 9, 0),
9751
9751
  category: jspb.Message.getFieldWithDefault(msg, 11, 0),
9752
9752
  spanId: jspb.Message.getFieldWithDefault(msg, 13, ""),
9753
9753
  parentSpanId: jspb.Message.getFieldWithDefault(msg, 14, ""),
9754
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
9755
+ selector: jspb.Message.getFieldWithDefault(msg, 16, ""),
9754
9756
  traceStarted: (f = msg.getTraceStarted()) && proto.gateway.web.v1.TraceStarted.toObject(includeInstance, f),
9755
9757
  traceFinished: (f = msg.getTraceFinished()) && proto.gateway.web.v1.TraceFinished.toObject(includeInstance, f),
9756
9758
  infoEventAdded: (f = msg.getInfoEventAdded()) && proto.gateway.web.v1.InfoEventAdded.toObject(includeInstance, f),
@@ -9888,6 +9890,16 @@ proto.gateway.web.v1.TraceEventEnvelope.deserializeBinaryFromReader = function(m
9888
9890
  var value = /** @type {string} */ (reader.readString());
9889
9891
  msg.setParentSpanId(value);
9890
9892
  break;
9893
+ case 15:
9894
+ var value = msg.getAttributesMap();
9895
+ reader.readMessage(value, function(message, reader) {
9896
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
9897
+ });
9898
+ break;
9899
+ case 16:
9900
+ var value = /** @type {string} */ (reader.readString());
9901
+ msg.setSelector(value);
9902
+ break;
9891
9903
  case 20:
9892
9904
  var value = new proto.gateway.web.v1.TraceStarted;
9893
9905
  reader.readMessage(value,proto.gateway.web.v1.TraceStarted.deserializeBinaryFromReader);
@@ -10258,6 +10270,17 @@ proto.gateway.web.v1.TraceEventEnvelope.serializeBinaryToWriter = function(messa
10258
10270
  f
10259
10271
  );
10260
10272
  }
10273
+ f = message.getAttributesMap(true);
10274
+ if (f && f.getLength() > 0) {
10275
+ f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
10276
+ }
10277
+ f = message.getSelector();
10278
+ if (f.length > 0) {
10279
+ writer.writeString(
10280
+ 16,
10281
+ f
10282
+ );
10283
+ }
10261
10284
  f = message.getTraceStarted();
10262
10285
  if (f != null) {
10263
10286
  writer.writeMessage(
@@ -10923,6 +10946,47 @@ proto.gateway.web.v1.TraceEventEnvelope.prototype.setParentSpanId = function(val
10923
10946
  };
10924
10947
 
10925
10948
 
10949
+ /**
10950
+ * map<string, string> attributes = 15;
10951
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
10952
+ * empty, instead returning `undefined`
10953
+ * @return {!jspb.Map<string,string>}
10954
+ */
10955
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.getAttributesMap = function(opt_noLazyCreate) {
10956
+ return /** @type {!jspb.Map<string,string>} */ (
10957
+ jspb.Message.getMapField(this, 15, opt_noLazyCreate,
10958
+ null));
10959
+ };
10960
+
10961
+
10962
+ /**
10963
+ * Clears values from the map. The map will be non-null.
10964
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
10965
+ */
10966
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.clearAttributesMap = function() {
10967
+ this.getAttributesMap().clear();
10968
+ return this;
10969
+ };
10970
+
10971
+
10972
+ /**
10973
+ * optional string selector = 16;
10974
+ * @return {string}
10975
+ */
10976
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.getSelector = function() {
10977
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
10978
+ };
10979
+
10980
+
10981
+ /**
10982
+ * @param {string} value
10983
+ * @return {!proto.gateway.web.v1.TraceEventEnvelope} returns this
10984
+ */
10985
+ proto.gateway.web.v1.TraceEventEnvelope.prototype.setSelector = function(value) {
10986
+ return jspb.Message.setProto3StringField(this, 16, value);
10987
+ };
10988
+
10989
+
10926
10990
  /**
10927
10991
  * optional TraceStarted trace_started = 20;
10928
10992
  * @return {?proto.gateway.web.v1.TraceStarted}