@dxos/protocols 0.1.56-next.a63ce79 → 0.1.56

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.
Files changed (51) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -170
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/config.d.ts +0 -2
  6. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts +16 -1
  9. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  10. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +14 -0
  11. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  12. package/dist/cjs/src/proto/gen/dxos/echo/service.js +12 -0
  13. package/dist/cjs/src/proto/gen/dxos/echo/service.js.map +1 -1
  14. package/dist/cjs/src/proto/gen/dxos/tracing.d.ts +71 -0
  15. package/dist/cjs/src/proto/gen/dxos/tracing.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/index.d.ts +8 -0
  17. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  18. package/dist/cjs/src/proto/gen/index.js +1 -1
  19. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  20. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  21. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -170
  22. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  23. package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
  24. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  25. package/dist/esm/src/proto/gen/dxos/config.d.ts +0 -2
  26. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  27. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts +16 -1
  29. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +14 -0
  31. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/echo/service.js +11 -1
  33. package/dist/esm/src/proto/gen/dxos/echo/service.js.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/tracing.d.ts +71 -0
  35. package/dist/esm/src/proto/gen/dxos/tracing.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/index.d.ts +8 -0
  37. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  38. package/dist/esm/src/proto/gen/index.js +1 -1
  39. package/dist/esm/src/proto/gen/index.js.map +1 -1
  40. package/package.json +4 -5
  41. package/src/proto/dxos/client/logging.proto +1 -0
  42. package/src/proto/dxos/config.proto +2 -0
  43. package/src/proto/dxos/devtools/swarm.proto +6 -1
  44. package/src/proto/dxos/echo/service.proto +6 -0
  45. package/src/proto/dxos/tracing.proto +42 -0
  46. package/src/proto/gen/dxos/client/services.ts +175 -170
  47. package/src/proto/gen/dxos/config.ts +0 -2
  48. package/src/proto/gen/dxos/devtools/swarm.ts +16 -1
  49. package/src/proto/gen/dxos/echo/service.ts +14 -0
  50. package/src/proto/gen/dxos/tracing.ts +70 -0
  51. package/src/proto/gen/index.ts +9 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAie7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4svFAA4svF,CAAC,CAAC,CAAC;AACrwvF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAye7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,w7xFAAw7xF,CAAC,CAAC,CAAC;AACj/xF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.56-next.a63ce79",
3
+ "version": "0.1.56",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,9 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.1.56-next.a63ce79",
37
- "@dxos/hypercore": "0.1.56-next.a63ce79",
38
- "@dxos/keys": "0.1.56-next.a63ce79",
39
- "@dxos/timeframe": "0.1.56-next.a63ce79"
36
+ "@dxos/codec-protobuf": "0.1.56",
37
+ "@dxos/keys": "0.1.56",
38
+ "@dxos/timeframe": "0.1.56"
40
39
  },
41
40
  "devDependencies": {
42
41
  "glob": "~7.1.6"
@@ -87,6 +87,7 @@ message LogEntry {
87
87
  string file = 1;
88
88
  int32 line = 2;
89
89
  optional google.protobuf.Struct scope = 3;
90
+ optional int32 resource_id = 4;
90
91
  }
91
92
 
92
93
  LogLevel level = 1;
@@ -110,6 +110,7 @@ message Runtime {
110
110
  optional Storage storage = 2;
111
111
 
112
112
  // TODO(burdon): Structure snapshot/epoch related props.
113
+
113
114
  optional bool enable_snapshots = 3;
114
115
 
115
116
  /// Milliseconds
@@ -119,6 +120,7 @@ message Runtime {
119
120
  optional int32 invitation_expiration = 5;
120
121
 
121
122
  /// Location of the remote client host.
123
+ // TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
122
124
  optional string remote_source = 6;
123
125
  }
124
126
 
@@ -4,6 +4,8 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
+ import "google/protobuf/timestamp.proto";
8
+
7
9
  import "dxos/keys.proto";
8
10
 
9
11
  package dxos.devtools.swarm;
@@ -20,9 +22,11 @@ message ConnectionInfo {
20
22
  message StreamStats {
21
23
  uint32 id = 1;
22
24
  string tag = 2;
25
+ optional string contentType = 5;
23
26
  uint32 bytesSent = 3;
24
27
  uint32 bytesReceived = 4;
25
- optional string contentType = 5;
28
+ optional uint32 bytesSentRate = 6; // bytes per second.
29
+ optional uint32 bytesReceivedRate = 7;
26
30
  }
27
31
 
28
32
  string state = 1;
@@ -32,6 +36,7 @@ message ConnectionInfo {
32
36
  repeated string protocol_extensions = 5;
33
37
  repeated ConnectionEvent events = 6;
34
38
  repeated StreamStats streams = 7;
39
+ optional string close_reason = 8;
35
40
  }
36
41
 
37
42
  message ConnectionEvent {
@@ -23,6 +23,12 @@ message EchoEvent {
23
23
  optional dxos.keys.PublicKey feed_key = 2;
24
24
  optional int32 seq = 3;
25
25
 
26
+ enum DatabaseAction {
27
+ RESET = 0;
28
+ }
29
+
30
+ optional DatabaseAction action = 4;
31
+
26
32
  dxos.echo.object.EchoObjectBatch batch = 10;
27
33
  }
28
34
 
@@ -3,6 +3,7 @@ syntax = "proto3";
3
3
  import "google/protobuf/struct.proto";
4
4
  import "google/protobuf/empty.proto";
5
5
  import "dxos/error.proto";
6
+ import "dxos/client/logging.proto";
6
7
 
7
8
  package dxos.tracing;
8
9
 
@@ -20,6 +21,7 @@ message Resource {
20
21
 
21
22
  google.protobuf.Struct info = 4;
22
23
  repeated ResourceLink links = 5;
24
+ repeated Metric metrics = 6;
23
25
  }
24
26
 
25
27
  message ResourceLink {
@@ -54,11 +56,51 @@ message StreamTraceEvent {
54
56
  Span span = 1;
55
57
  }
56
58
 
59
+ message LogAdded {
60
+ dxos.client.services.LogEntry log = 1;
61
+ }
62
+
57
63
  repeated ResourceAdded resource_added = 1;
58
64
  repeated ResourceRemoved resource_removed = 2;
59
65
  repeated SpanAdded span_added = 3;
66
+ repeated LogAdded log_added = 4;
60
67
  }
61
68
 
69
+ message Metric {
70
+ message Counter {
71
+ double value = 1;
72
+ optional string units = 2;
73
+ }
74
+
75
+ message TimeSeries {
76
+ message Point {
77
+ double value = 1;
78
+ }
79
+
80
+ message Track {
81
+ string name = 1;
82
+ optional string units = 2;
83
+ repeated Point points = 10;
84
+ double total = 11;
85
+ }
86
+
87
+ repeated Track tracks = 1;
88
+ }
89
+
90
+ message Custom {
91
+ google.protobuf.Struct payload = 1;
92
+ }
93
+
94
+ string name = 1;
95
+
96
+ oneof Value {
97
+ Counter counter = 100;
98
+ TimeSeries time_series = 101;
99
+ Custom custom = 199;
100
+ }
101
+ }
102
+
103
+
62
104
  service TracingService {
63
105
  rpc StreamTrace(google.protobuf.Empty) returns (stream StreamTraceEvent);
64
106
  }
@@ -53,176 +53,6 @@ import * as dxos_value from "../value";
53
53
  import * as example_testing_data from "../../example/testing/data";
54
54
  import * as example_testing_rpc from "../../example/testing/rpc";
55
55
  import * as google_protobuf from "../../google/protobuf";
56
- /**
57
- * Defined in:
58
- * {@link file://./../../../dxos/client/logging.proto}
59
- */
60
- export interface Metrics {
61
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
62
- values?: Metrics.KeyPair[];
63
- }
64
- export namespace Metrics {
65
- /**
66
- * Defined in:
67
- * {@link file://./../../../dxos/client/logging.proto}
68
- */
69
- export interface KeyPair {
70
- /**
71
- * Options:
72
- * - proto3_optional = true
73
- */
74
- key?: string;
75
- /**
76
- * Options:
77
- * - proto3_optional = true
78
- */
79
- value?: dxos_value.Value;
80
- /**
81
- * Options:
82
- * - proto3_optional = true
83
- */
84
- stats?: dxos_value.Stats;
85
- }
86
- }
87
- /**
88
- * Defined in:
89
- * {@link file://./../../../dxos/client/logging.proto}
90
- */
91
- export interface ControlMetricsRequest {
92
- /**
93
- * Options:
94
- * - proto3_optional = true
95
- */
96
- reset?: boolean;
97
- /**
98
- * Options:
99
- * - proto3_optional = true
100
- */
101
- record?: boolean;
102
- }
103
- /**
104
- * Defined in:
105
- * {@link file://./../../../dxos/client/logging.proto}
106
- */
107
- export interface ControlMetricsResponse {
108
- /**
109
- * Options:
110
- * - proto3_optional = true
111
- */
112
- recording?: boolean;
113
- }
114
- /**
115
- * Defined in:
116
- * {@link file://./../../../dxos/client/logging.proto}
117
- */
118
- export interface QueryMetricsRequest {
119
- /**
120
- * Options:
121
- * - proto3_optional = true
122
- */
123
- interval?: number;
124
- }
125
- /**
126
- * Defined in:
127
- * {@link file://./../../../dxos/client/logging.proto}
128
- */
129
- export interface QueryMetricsResponse {
130
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
131
- metrics: Metrics;
132
- }
133
- /**
134
- * Defined in:
135
- * {@link file://./../../../dxos/client/logging.proto}
136
- */
137
- export enum LogLevel {
138
- TRACE = 5,
139
- DEBUG = 10,
140
- INFO = 11,
141
- WARN = 12,
142
- ERROR = 13
143
- }
144
- /**
145
- * Defined in:
146
- * {@link file://./../../../dxos/client/logging.proto}
147
- */
148
- export interface QueryLogsRequest {
149
- filters?: QueryLogsRequest.Filter[];
150
- /**
151
- * Options:
152
- * - proto3_optional = true
153
- */
154
- options?: QueryLogsRequest.MatchingOptions;
155
- }
156
- export namespace QueryLogsRequest {
157
- /**
158
- * Defined in:
159
- * {@link file://./../../../dxos/client/logging.proto}
160
- */
161
- export enum MatchingOptions {
162
- INCLUSIVE = 1,
163
- EXPLICIT = 2
164
- }
165
- /**
166
- * Defined in:
167
- * {@link file://./../../../dxos/client/logging.proto}
168
- */
169
- export interface Filter {
170
- level: LogLevel;
171
- /**
172
- * Options:
173
- * - proto3_optional = true
174
- */
175
- pattern?: string;
176
- }
177
- }
178
- /**
179
- * Defined in:
180
- * {@link file://./../../../dxos/client/logging.proto}
181
- */
182
- export interface LogEntry {
183
- level: LogLevel;
184
- message: string;
185
- /**
186
- * Options:
187
- * - proto3_optional = true
188
- */
189
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
190
- /**
191
- * Options:
192
- * - proto3_optional = true
193
- */
194
- meta?: LogEntry.Meta;
195
- /**
196
- * Options:
197
- * - proto3_optional = true
198
- */
199
- error?: dxos_error.Error;
200
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
201
- }
202
- export namespace LogEntry {
203
- /**
204
- * Defined in:
205
- * {@link file://./../../../dxos/client/logging.proto}
206
- */
207
- export interface Meta {
208
- file: string;
209
- line: number;
210
- /**
211
- * Options:
212
- * - proto3_optional = true
213
- */
214
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
215
- }
216
- }
217
- /**
218
- * Defined in:
219
- * {@link file://./../../../dxos/client/logging.proto}
220
- */
221
- export interface LoggingService {
222
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
223
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
224
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
225
- }
226
56
  /**
227
57
  * Defined in:
228
58
  * {@link file://./../../../dxos/client/services.proto}
@@ -911,3 +741,178 @@ export interface NetworkService {
911
741
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
912
742
  queryStatus: (request: void) => Stream<NetworkStatus>;
913
743
  }
744
+ /**
745
+ * Defined in:
746
+ * {@link file://./../../../dxos/client/logging.proto}
747
+ */
748
+ export interface Metrics {
749
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
750
+ values?: Metrics.KeyPair[];
751
+ }
752
+ export namespace Metrics {
753
+ /**
754
+ * Defined in:
755
+ * {@link file://./../../../dxos/client/logging.proto}
756
+ */
757
+ export interface KeyPair {
758
+ /**
759
+ * Options:
760
+ * - proto3_optional = true
761
+ */
762
+ key?: string;
763
+ /**
764
+ * Options:
765
+ * - proto3_optional = true
766
+ */
767
+ value?: dxos_value.Value;
768
+ /**
769
+ * Options:
770
+ * - proto3_optional = true
771
+ */
772
+ stats?: dxos_value.Stats;
773
+ }
774
+ }
775
+ /**
776
+ * Defined in:
777
+ * {@link file://./../../../dxos/client/logging.proto}
778
+ */
779
+ export interface ControlMetricsRequest {
780
+ /**
781
+ * Options:
782
+ * - proto3_optional = true
783
+ */
784
+ reset?: boolean;
785
+ /**
786
+ * Options:
787
+ * - proto3_optional = true
788
+ */
789
+ record?: boolean;
790
+ }
791
+ /**
792
+ * Defined in:
793
+ * {@link file://./../../../dxos/client/logging.proto}
794
+ */
795
+ export interface ControlMetricsResponse {
796
+ /**
797
+ * Options:
798
+ * - proto3_optional = true
799
+ */
800
+ recording?: boolean;
801
+ }
802
+ /**
803
+ * Defined in:
804
+ * {@link file://./../../../dxos/client/logging.proto}
805
+ */
806
+ export interface QueryMetricsRequest {
807
+ /**
808
+ * Options:
809
+ * - proto3_optional = true
810
+ */
811
+ interval?: number;
812
+ }
813
+ /**
814
+ * Defined in:
815
+ * {@link file://./../../../dxos/client/logging.proto}
816
+ */
817
+ export interface QueryMetricsResponse {
818
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
819
+ metrics: Metrics;
820
+ }
821
+ /**
822
+ * Defined in:
823
+ * {@link file://./../../../dxos/client/logging.proto}
824
+ */
825
+ export enum LogLevel {
826
+ TRACE = 5,
827
+ DEBUG = 10,
828
+ INFO = 11,
829
+ WARN = 12,
830
+ ERROR = 13
831
+ }
832
+ /**
833
+ * Defined in:
834
+ * {@link file://./../../../dxos/client/logging.proto}
835
+ */
836
+ export interface QueryLogsRequest {
837
+ filters?: QueryLogsRequest.Filter[];
838
+ /**
839
+ * Options:
840
+ * - proto3_optional = true
841
+ */
842
+ options?: QueryLogsRequest.MatchingOptions;
843
+ }
844
+ export namespace QueryLogsRequest {
845
+ /**
846
+ * Defined in:
847
+ * {@link file://./../../../dxos/client/logging.proto}
848
+ */
849
+ export enum MatchingOptions {
850
+ INCLUSIVE = 1,
851
+ EXPLICIT = 2
852
+ }
853
+ /**
854
+ * Defined in:
855
+ * {@link file://./../../../dxos/client/logging.proto}
856
+ */
857
+ export interface Filter {
858
+ level: LogLevel;
859
+ /**
860
+ * Options:
861
+ * - proto3_optional = true
862
+ */
863
+ pattern?: string;
864
+ }
865
+ }
866
+ /**
867
+ * Defined in:
868
+ * {@link file://./../../../dxos/client/logging.proto}
869
+ */
870
+ export interface LogEntry {
871
+ level: LogLevel;
872
+ message: string;
873
+ /**
874
+ * Options:
875
+ * - proto3_optional = true
876
+ */
877
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
878
+ /**
879
+ * Options:
880
+ * - proto3_optional = true
881
+ */
882
+ meta?: LogEntry.Meta;
883
+ /**
884
+ * Options:
885
+ * - proto3_optional = true
886
+ */
887
+ error?: dxos_error.Error;
888
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
889
+ }
890
+ export namespace LogEntry {
891
+ /**
892
+ * Defined in:
893
+ * {@link file://./../../../dxos/client/logging.proto}
894
+ */
895
+ export interface Meta {
896
+ file: string;
897
+ line: number;
898
+ /**
899
+ * Options:
900
+ * - proto3_optional = true
901
+ */
902
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
903
+ /**
904
+ * Options:
905
+ * - proto3_optional = true
906
+ */
907
+ resourceId?: number;
908
+ }
909
+ }
910
+ /**
911
+ * Defined in:
912
+ * {@link file://./../../../dxos/client/logging.proto}
913
+ */
914
+ export interface LoggingService {
915
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
916
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
917
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
918
+ }
@@ -280,8 +280,6 @@ export namespace Runtime {
280
280
  */
281
281
  invitationExpiration?: number;
282
282
  /**
283
- * Location of the remote client host.
284
- *
285
283
  * Options:
286
284
  * - proto3_optional = true
287
285
  */
@@ -84,6 +84,11 @@ export interface ConnectionInfo {
84
84
  protocolExtensions?: string[];
85
85
  events?: ConnectionEvent[];
86
86
  streams?: ConnectionInfo.StreamStats[];
87
+ /**
88
+ * Options:
89
+ * - proto3_optional = true
90
+ */
91
+ closeReason?: string;
87
92
  }
88
93
  export namespace ConnectionInfo {
89
94
  /**
@@ -93,13 +98,23 @@ export namespace ConnectionInfo {
93
98
  export interface StreamStats {
94
99
  id: number;
95
100
  tag: string;
101
+ /**
102
+ * Options:
103
+ * - proto3_optional = true
104
+ */
105
+ contentType?: string;
96
106
  bytesSent: number;
97
107
  bytesReceived: number;
98
108
  /**
99
109
  * Options:
100
110
  * - proto3_optional = true
101
111
  */
102
- contentType?: string;
112
+ bytesSentRate?: number;
113
+ /**
114
+ * Options:
115
+ * - proto3_optional = true
116
+ */
117
+ bytesReceivedRate?: number;
103
118
  }
104
119
  }
105
120
  /**
@@ -84,8 +84,22 @@ export interface EchoEvent {
84
84
  * - proto3_optional = true
85
85
  */
86
86
  seq?: number;
87
+ /**
88
+ * Options:
89
+ * - proto3_optional = true
90
+ */
91
+ action?: EchoEvent.DatabaseAction;
87
92
  batch: dxos_echo_object.EchoObjectBatch;
88
93
  }
94
+ export namespace EchoEvent {
95
+ /**
96
+ * Defined in:
97
+ * {@link file://./../../../dxos/echo/service.proto}
98
+ */
99
+ export enum DatabaseAction {
100
+ RESET = 0
101
+ }
102
+ }
89
103
  /**
90
104
  * Defined in:
91
105
  * {@link file://./../../../dxos/echo/service.proto}
@@ -73,6 +73,7 @@ export interface Resource {
73
73
  instanceId: number;
74
74
  info: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
75
75
  links?: ResourceLink[];
76
+ metrics?: Metric[];
76
77
  }
77
78
  /**
78
79
  * Defined in:
@@ -120,6 +121,7 @@ export interface StreamTraceEvent {
120
121
  resourceAdded?: StreamTraceEvent.ResourceAdded[];
121
122
  resourceRemoved?: StreamTraceEvent.ResourceRemoved[];
122
123
  spanAdded?: StreamTraceEvent.SpanAdded[];
124
+ logAdded?: StreamTraceEvent.LogAdded[];
123
125
  }
124
126
  export namespace StreamTraceEvent {
125
127
  /**
@@ -143,6 +145,74 @@ export namespace StreamTraceEvent {
143
145
  export interface SpanAdded {
144
146
  span: Span;
145
147
  }
148
+ /**
149
+ * Defined in:
150
+ * {@link file://./../../dxos/tracing.proto}
151
+ */
152
+ export interface LogAdded {
153
+ log: dxos_client_services.LogEntry;
154
+ }
155
+ }
156
+ /**
157
+ * Defined in:
158
+ * {@link file://./../../dxos/tracing.proto}
159
+ */
160
+ export interface Metric {
161
+ name: string;
162
+ counter?: Metric.Counter;
163
+ timeSeries?: Metric.TimeSeries;
164
+ custom?: Metric.Custom;
165
+ }
166
+ export namespace Metric {
167
+ /**
168
+ * Defined in:
169
+ * {@link file://./../../dxos/tracing.proto}
170
+ */
171
+ export interface Counter {
172
+ value: number;
173
+ /**
174
+ * Options:
175
+ * - proto3_optional = true
176
+ */
177
+ units?: string;
178
+ }
179
+ /**
180
+ * Defined in:
181
+ * {@link file://./../../dxos/tracing.proto}
182
+ */
183
+ export interface TimeSeries {
184
+ tracks?: Metric.TimeSeries.Track[];
185
+ }
186
+ export namespace TimeSeries {
187
+ /**
188
+ * Defined in:
189
+ * {@link file://./../../dxos/tracing.proto}
190
+ */
191
+ export interface Point {
192
+ value: number;
193
+ }
194
+ /**
195
+ * Defined in:
196
+ * {@link file://./../../dxos/tracing.proto}
197
+ */
198
+ export interface Track {
199
+ name: string;
200
+ /**
201
+ * Options:
202
+ * - proto3_optional = true
203
+ */
204
+ units?: string;
205
+ points?: Metric.TimeSeries.Point[];
206
+ total: number;
207
+ }
208
+ }
209
+ /**
210
+ * Defined in:
211
+ * {@link file://./../../dxos/tracing.proto}
212
+ */
213
+ export interface Custom {
214
+ payload: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
215
+ }
146
216
  }
147
217
  /**
148
218
  * Defined in: