@viamrobotics/sdk 0.57.0 → 0.59.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.
Files changed (56) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +3 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +5 -0
  6. package/dist/gen/app/v1/app_pb.d.ts +139 -0
  7. package/dist/gen/app/v1/robot_pb.d.ts +55 -0
  8. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  9. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  10. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  11. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  12. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  13. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  14. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  15. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  16. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  17. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  18. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  19. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  20. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  21. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  22. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  23. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  24. package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
  25. package/dist/main.es.js +13348 -12911
  26. package/dist/main.umd.js +7 -7
  27. package/dist/robot/client.d.ts +20 -16
  28. package/dist/robot/robot.d.ts +19 -10
  29. package/dist/robot.d.ts +1 -1
  30. package/dist/services/motion/client.d.ts +1 -0
  31. package/dist/services/motion/motion.d.ts +1 -0
  32. package/dist/services/video/client.d.ts +20 -0
  33. package/dist/services/video/index.d.ts +3 -0
  34. package/dist/services/video/types.d.ts +9 -0
  35. package/dist/services/video/video.d.ts +44 -0
  36. package/dist/services/video.d.ts +3 -0
  37. package/package.json +1 -1
  38. package/dist/app/app-client.spec.d.ts +0 -1
  39. package/dist/app/billing-client.spec.d.ts +0 -1
  40. package/dist/app/data-client.spec.d.ts +0 -1
  41. package/dist/app/ml-training-client.spec.d.ts +0 -1
  42. package/dist/app/provisioning-client.spec.d.ts +0 -1
  43. package/dist/app/viam-client.spec.d.ts +0 -1
  44. package/dist/components/audio-in/client.spec.d.ts +0 -1
  45. package/dist/components/audio-out/client.spec.d.ts +0 -1
  46. package/dist/components/board/client.spec.d.ts +0 -1
  47. package/dist/components/input-controller/client.spec.d.ts +0 -1
  48. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  49. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  50. package/dist/extra/stream/client.spec.d.ts +0 -1
  51. package/dist/services/discovery/client.spec.d.ts +0 -1
  52. package/dist/services/motion/client.spec.d.ts +0 -1
  53. package/dist/services/navigation/client.spec.d.ts +0 -1
  54. package/dist/services/slam/client.spec.d.ts +0 -1
  55. package/dist/services/vision/client.spec.d.ts +0 -1
  56. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -0,0 +1,683 @@
1
+ // Copyright 2019, OpenTelemetry Authors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file opentelemetry/proto/trace/v1/trace.proto (package opentelemetry.proto.trace.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { Resource } from "../../resource/v1/resource_pb.js";
23
+ import type { InstrumentationScope, KeyValue } from "../../common/v1/common_pb.js";
24
+
25
+ /**
26
+ * SpanFlags represents constants used to interpret the
27
+ * Span.flags field, which is protobuf 'fixed32' type and is to
28
+ * be used as bit-fields. Each non-zero value defined in this enum is
29
+ * a bit-mask. To extract the bit-field, for example, use an
30
+ * expression like:
31
+ *
32
+ * (span.flags & SPAN_FLAGS_TRACE_FLAGS_MASK)
33
+ *
34
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
35
+ *
36
+ * Note that Span flags were introduced in version 1.1 of the
37
+ * OpenTelemetry protocol. Older Span producers do not set this
38
+ * field, consequently consumers should not rely on the absence of a
39
+ * particular flag bit to indicate the presence of a particular feature.
40
+ *
41
+ * @generated from enum opentelemetry.proto.trace.v1.SpanFlags
42
+ */
43
+ export declare enum SpanFlags {
44
+ /**
45
+ * The zero value for the enum. Should not be used for comparisons.
46
+ * Instead use bitwise "and" with the appropriate mask as shown above.
47
+ *
48
+ * @generated from enum value: SPAN_FLAGS_DO_NOT_USE = 0;
49
+ */
50
+ DO_NOT_USE = 0,
51
+
52
+ /**
53
+ * Bits 0-7 are used for trace flags.
54
+ *
55
+ * @generated from enum value: SPAN_FLAGS_TRACE_FLAGS_MASK = 255;
56
+ */
57
+ TRACE_FLAGS_MASK = 255,
58
+
59
+ /**
60
+ * Bits 8 and 9 are used to indicate that the parent span or link span is remote.
61
+ * Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known.
62
+ * Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote.
63
+ *
64
+ * @generated from enum value: SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 256;
65
+ */
66
+ CONTEXT_HAS_IS_REMOTE_MASK = 256,
67
+
68
+ /**
69
+ * @generated from enum value: SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512;
70
+ */
71
+ CONTEXT_IS_REMOTE_MASK = 512,
72
+ }
73
+
74
+ /**
75
+ * TracesData represents the traces data that can be stored in a persistent storage,
76
+ * OR can be embedded by other protocols that transfer OTLP traces data but do
77
+ * not implement the OTLP protocol.
78
+ *
79
+ * The main difference between this message and collector protocol is that
80
+ * in this message there will not be any "control" or "metadata" specific to
81
+ * OTLP protocol.
82
+ *
83
+ * When new fields are added into this message, the OTLP request MUST be updated
84
+ * as well.
85
+ *
86
+ * @generated from message opentelemetry.proto.trace.v1.TracesData
87
+ */
88
+ export declare class TracesData extends Message<TracesData> {
89
+ /**
90
+ * An array of ResourceSpans.
91
+ * For data coming from a single resource this array will typically contain
92
+ * one element. Intermediary nodes that receive data from multiple origins
93
+ * typically batch the data before forwarding further and in that case this
94
+ * array will contain multiple elements.
95
+ *
96
+ * @generated from field: repeated opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1;
97
+ */
98
+ resourceSpans: ResourceSpans[];
99
+
100
+ constructor(data?: PartialMessage<TracesData>);
101
+
102
+ static readonly runtime: typeof proto3;
103
+ static readonly typeName = "opentelemetry.proto.trace.v1.TracesData";
104
+ static readonly fields: FieldList;
105
+
106
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TracesData;
107
+
108
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TracesData;
109
+
110
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TracesData;
111
+
112
+ static equals(a: TracesData | PlainMessage<TracesData> | undefined, b: TracesData | PlainMessage<TracesData> | undefined): boolean;
113
+ }
114
+
115
+ /**
116
+ * A collection of ScopeSpans from a Resource.
117
+ *
118
+ * @generated from message opentelemetry.proto.trace.v1.ResourceSpans
119
+ */
120
+ export declare class ResourceSpans extends Message<ResourceSpans> {
121
+ /**
122
+ * The resource for the spans in this message.
123
+ * If this field is not set then no resource info is known.
124
+ *
125
+ * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
126
+ */
127
+ resource?: Resource;
128
+
129
+ /**
130
+ * A list of ScopeSpans that originate from a resource.
131
+ *
132
+ * @generated from field: repeated opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
133
+ */
134
+ scopeSpans: ScopeSpans[];
135
+
136
+ /**
137
+ * The Schema URL, if known. This is the identifier of the Schema that the resource data
138
+ * is recorded in. Notably, the last part of the URL path is the version number of the
139
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
140
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
141
+ * This schema_url applies to the data in the "resource" field. It does not apply
142
+ * to the data in the "scope_spans" field which have their own schema_url field.
143
+ *
144
+ * @generated from field: string schema_url = 3;
145
+ */
146
+ schemaUrl: string;
147
+
148
+ constructor(data?: PartialMessage<ResourceSpans>);
149
+
150
+ static readonly runtime: typeof proto3;
151
+ static readonly typeName = "opentelemetry.proto.trace.v1.ResourceSpans";
152
+ static readonly fields: FieldList;
153
+
154
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceSpans;
155
+
156
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceSpans;
157
+
158
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceSpans;
159
+
160
+ static equals(a: ResourceSpans | PlainMessage<ResourceSpans> | undefined, b: ResourceSpans | PlainMessage<ResourceSpans> | undefined): boolean;
161
+ }
162
+
163
+ /**
164
+ * A collection of Spans produced by an InstrumentationScope.
165
+ *
166
+ * @generated from message opentelemetry.proto.trace.v1.ScopeSpans
167
+ */
168
+ export declare class ScopeSpans extends Message<ScopeSpans> {
169
+ /**
170
+ * The instrumentation scope information for the spans in this message.
171
+ * Semantically when InstrumentationScope isn't set, it is equivalent with
172
+ * an empty instrumentation scope name (unknown).
173
+ *
174
+ * @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
175
+ */
176
+ scope?: InstrumentationScope;
177
+
178
+ /**
179
+ * A list of Spans that originate from an instrumentation scope.
180
+ *
181
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span spans = 2;
182
+ */
183
+ spans: Span[];
184
+
185
+ /**
186
+ * The Schema URL, if known. This is the identifier of the Schema that the span data
187
+ * is recorded in. Notably, the last part of the URL path is the version number of the
188
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
189
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
190
+ * This schema_url applies to the data in the "scope" field and all spans and span
191
+ * events in the "spans" field.
192
+ *
193
+ * @generated from field: string schema_url = 3;
194
+ */
195
+ schemaUrl: string;
196
+
197
+ constructor(data?: PartialMessage<ScopeSpans>);
198
+
199
+ static readonly runtime: typeof proto3;
200
+ static readonly typeName = "opentelemetry.proto.trace.v1.ScopeSpans";
201
+ static readonly fields: FieldList;
202
+
203
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopeSpans;
204
+
205
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopeSpans;
206
+
207
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopeSpans;
208
+
209
+ static equals(a: ScopeSpans | PlainMessage<ScopeSpans> | undefined, b: ScopeSpans | PlainMessage<ScopeSpans> | undefined): boolean;
210
+ }
211
+
212
+ /**
213
+ * A Span represents a single operation performed by a single component of the system.
214
+ *
215
+ * The next available field id is 17.
216
+ *
217
+ * @generated from message opentelemetry.proto.trace.v1.Span
218
+ */
219
+ export declare class Span extends Message<Span> {
220
+ /**
221
+ * A unique identifier for a trace. All spans from the same trace share
222
+ * the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR
223
+ * of length other than 16 bytes is considered invalid (empty string in OTLP/JSON
224
+ * is zero-length and thus is also invalid).
225
+ *
226
+ * This field is required.
227
+ *
228
+ * @generated from field: bytes trace_id = 1;
229
+ */
230
+ traceId: Uint8Array;
231
+
232
+ /**
233
+ * A unique identifier for a span within a trace, assigned when the span
234
+ * is created. The ID is an 8-byte array. An ID with all zeroes OR of length
235
+ * other than 8 bytes is considered invalid (empty string in OTLP/JSON
236
+ * is zero-length and thus is also invalid).
237
+ *
238
+ * This field is required.
239
+ *
240
+ * @generated from field: bytes span_id = 2;
241
+ */
242
+ spanId: Uint8Array;
243
+
244
+ /**
245
+ * trace_state conveys information about request position in multiple distributed tracing graphs.
246
+ * It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
247
+ * See also https://github.com/w3c/distributed-tracing for more details about this field.
248
+ *
249
+ * @generated from field: string trace_state = 3;
250
+ */
251
+ traceState: string;
252
+
253
+ /**
254
+ * The `span_id` of this span's parent span. If this is a root span, then this
255
+ * field must be empty. The ID is an 8-byte array.
256
+ *
257
+ * @generated from field: bytes parent_span_id = 4;
258
+ */
259
+ parentSpanId: Uint8Array;
260
+
261
+ /**
262
+ * Flags, a bit field.
263
+ *
264
+ * Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
265
+ * Context specification. To read the 8-bit W3C trace flag, use
266
+ * `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
267
+ *
268
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
269
+ *
270
+ * Bits 8 and 9 represent the 3 states of whether a span's parent
271
+ * is remote. The states are (unknown, is not remote, is remote).
272
+ * To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
273
+ * To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
274
+ *
275
+ * When creating span messages, if the message is logically forwarded from another source
276
+ * with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD
277
+ * be copied as-is. If creating from a source that does not have an equivalent flags field
278
+ * (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST
279
+ * be set to zero.
280
+ * Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
281
+ *
282
+ * [Optional].
283
+ *
284
+ * @generated from field: fixed32 flags = 16;
285
+ */
286
+ flags: number;
287
+
288
+ /**
289
+ * A description of the span's operation.
290
+ *
291
+ * For example, the name can be a qualified method name or a file name
292
+ * and a line number where the operation is called. A best practice is to use
293
+ * the same display name at the same call point in an application.
294
+ * This makes it easier to correlate spans in different traces.
295
+ *
296
+ * This field is semantically required to be set to non-empty string.
297
+ * Empty value is equivalent to an unknown span name.
298
+ *
299
+ * This field is required.
300
+ *
301
+ * @generated from field: string name = 5;
302
+ */
303
+ name: string;
304
+
305
+ /**
306
+ * Distinguishes between spans generated in a particular context. For example,
307
+ * two spans with the same name may be distinguished using `CLIENT` (caller)
308
+ * and `SERVER` (callee) to identify queueing latency associated with the span.
309
+ *
310
+ * @generated from field: opentelemetry.proto.trace.v1.Span.SpanKind kind = 6;
311
+ */
312
+ kind: Span_SpanKind;
313
+
314
+ /**
315
+ * The start time of the span. On the client side, this is the time
316
+ * kept by the local machine where the span execution starts. On the server side, this
317
+ * is the time when the server's application handler starts running.
318
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
319
+ *
320
+ * This field is semantically required and it is expected that end_time >= start_time.
321
+ *
322
+ * @generated from field: fixed64 start_time_unix_nano = 7;
323
+ */
324
+ startTimeUnixNano: bigint;
325
+
326
+ /**
327
+ * The end time of the span. On the client side, this is the time
328
+ * kept by the local machine where the span execution ends. On the server side, this
329
+ * is the time when the server application handler stops running.
330
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
331
+ *
332
+ * This field is semantically required and it is expected that end_time >= start_time.
333
+ *
334
+ * @generated from field: fixed64 end_time_unix_nano = 8;
335
+ */
336
+ endTimeUnixNano: bigint;
337
+
338
+ /**
339
+ * A collection of key/value pairs. Note, global attributes
340
+ * like server name can be set using the resource API. Examples of attributes:
341
+ *
342
+ * "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
343
+ * "/http/server_latency": 300
344
+ * "example.com/myattribute": true
345
+ * "example.com/score": 10.239
346
+ *
347
+ * Attribute keys MUST be unique (it is not allowed to have more than one
348
+ * attribute with the same key).
349
+ * The behavior of software that receives duplicated keys can be unpredictable.
350
+ *
351
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 9;
352
+ */
353
+ attributes: KeyValue[];
354
+
355
+ /**
356
+ * The number of attributes that were discarded. Attributes
357
+ * can be discarded because their keys are too long or because there are too many
358
+ * attributes. If this value is 0, then no attributes were dropped.
359
+ *
360
+ * @generated from field: uint32 dropped_attributes_count = 10;
361
+ */
362
+ droppedAttributesCount: number;
363
+
364
+ /**
365
+ * A collection of Event items.
366
+ *
367
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span.Event events = 11;
368
+ */
369
+ events: Span_Event[];
370
+
371
+ /**
372
+ * The number of dropped events. If the value is 0, then no
373
+ * events were dropped.
374
+ *
375
+ * @generated from field: uint32 dropped_events_count = 12;
376
+ */
377
+ droppedEventsCount: number;
378
+
379
+ /**
380
+ * A collection of Links, which are references from this span to a span
381
+ * in the same or different trace.
382
+ *
383
+ * @generated from field: repeated opentelemetry.proto.trace.v1.Span.Link links = 13;
384
+ */
385
+ links: Span_Link[];
386
+
387
+ /**
388
+ * The number of dropped links after the maximum size was
389
+ * enforced. If this value is 0, then no links were dropped.
390
+ *
391
+ * @generated from field: uint32 dropped_links_count = 14;
392
+ */
393
+ droppedLinksCount: number;
394
+
395
+ /**
396
+ * An optional final status for this span. Semantically when Status isn't set, it means
397
+ * span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).
398
+ *
399
+ * @generated from field: opentelemetry.proto.trace.v1.Status status = 15;
400
+ */
401
+ status?: Status;
402
+
403
+ constructor(data?: PartialMessage<Span>);
404
+
405
+ static readonly runtime: typeof proto3;
406
+ static readonly typeName = "opentelemetry.proto.trace.v1.Span";
407
+ static readonly fields: FieldList;
408
+
409
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Span;
410
+
411
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Span;
412
+
413
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Span;
414
+
415
+ static equals(a: Span | PlainMessage<Span> | undefined, b: Span | PlainMessage<Span> | undefined): boolean;
416
+ }
417
+
418
+ /**
419
+ * SpanKind is the type of span. Can be used to specify additional relationships between spans
420
+ * in addition to a parent/child relationship.
421
+ *
422
+ * @generated from enum opentelemetry.proto.trace.v1.Span.SpanKind
423
+ */
424
+ export declare enum Span_SpanKind {
425
+ /**
426
+ * Unspecified. Do NOT use as default.
427
+ * Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
428
+ *
429
+ * @generated from enum value: SPAN_KIND_UNSPECIFIED = 0;
430
+ */
431
+ UNSPECIFIED = 0,
432
+
433
+ /**
434
+ * Indicates that the span represents an internal operation within an application,
435
+ * as opposed to an operation happening at the boundaries. Default value.
436
+ *
437
+ * @generated from enum value: SPAN_KIND_INTERNAL = 1;
438
+ */
439
+ INTERNAL = 1,
440
+
441
+ /**
442
+ * Indicates that the span covers server-side handling of an RPC or other
443
+ * remote network request.
444
+ *
445
+ * @generated from enum value: SPAN_KIND_SERVER = 2;
446
+ */
447
+ SERVER = 2,
448
+
449
+ /**
450
+ * Indicates that the span describes a request to some remote service.
451
+ *
452
+ * @generated from enum value: SPAN_KIND_CLIENT = 3;
453
+ */
454
+ CLIENT = 3,
455
+
456
+ /**
457
+ * Indicates that the span describes a producer sending a message to a broker.
458
+ * Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
459
+ * between producer and consumer spans. A PRODUCER span ends when the message was accepted
460
+ * by the broker while the logical processing of the message might span a much longer time.
461
+ *
462
+ * @generated from enum value: SPAN_KIND_PRODUCER = 4;
463
+ */
464
+ PRODUCER = 4,
465
+
466
+ /**
467
+ * Indicates that the span describes consumer receiving a message from a broker.
468
+ * Like the PRODUCER kind, there is often no direct critical path latency relationship
469
+ * between producer and consumer spans.
470
+ *
471
+ * @generated from enum value: SPAN_KIND_CONSUMER = 5;
472
+ */
473
+ CONSUMER = 5,
474
+ }
475
+
476
+ /**
477
+ * Event is a time-stamped annotation of the span, consisting of user-supplied
478
+ * text description and key-value pairs.
479
+ *
480
+ * @generated from message opentelemetry.proto.trace.v1.Span.Event
481
+ */
482
+ export declare class Span_Event extends Message<Span_Event> {
483
+ /**
484
+ * The time the event occurred.
485
+ *
486
+ * @generated from field: fixed64 time_unix_nano = 1;
487
+ */
488
+ timeUnixNano: bigint;
489
+
490
+ /**
491
+ * The name of the event.
492
+ * This field is semantically required to be set to non-empty string.
493
+ *
494
+ * @generated from field: string name = 2;
495
+ */
496
+ name: string;
497
+
498
+ /**
499
+ * A collection of attribute key/value pairs on the event.
500
+ * Attribute keys MUST be unique (it is not allowed to have more than one
501
+ * attribute with the same key).
502
+ * The behavior of software that receives duplicated keys can be unpredictable.
503
+ *
504
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 3;
505
+ */
506
+ attributes: KeyValue[];
507
+
508
+ /**
509
+ * The number of dropped attributes. If the value is 0,
510
+ * then no attributes were dropped.
511
+ *
512
+ * @generated from field: uint32 dropped_attributes_count = 4;
513
+ */
514
+ droppedAttributesCount: number;
515
+
516
+ constructor(data?: PartialMessage<Span_Event>);
517
+
518
+ static readonly runtime: typeof proto3;
519
+ static readonly typeName = "opentelemetry.proto.trace.v1.Span.Event";
520
+ static readonly fields: FieldList;
521
+
522
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Span_Event;
523
+
524
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Span_Event;
525
+
526
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Span_Event;
527
+
528
+ static equals(a: Span_Event | PlainMessage<Span_Event> | undefined, b: Span_Event | PlainMessage<Span_Event> | undefined): boolean;
529
+ }
530
+
531
+ /**
532
+ * A pointer from the current span to another span in the same trace or in a
533
+ * different trace. For example, this can be used in batching operations,
534
+ * where a single batch handler processes multiple requests from different
535
+ * traces or when the handler receives a request from a different project.
536
+ *
537
+ * @generated from message opentelemetry.proto.trace.v1.Span.Link
538
+ */
539
+ export declare class Span_Link extends Message<Span_Link> {
540
+ /**
541
+ * A unique identifier of a trace that this linked span is part of. The ID is a
542
+ * 16-byte array.
543
+ *
544
+ * @generated from field: bytes trace_id = 1;
545
+ */
546
+ traceId: Uint8Array;
547
+
548
+ /**
549
+ * A unique identifier for the linked span. The ID is an 8-byte array.
550
+ *
551
+ * @generated from field: bytes span_id = 2;
552
+ */
553
+ spanId: Uint8Array;
554
+
555
+ /**
556
+ * The trace_state associated with the link.
557
+ *
558
+ * @generated from field: string trace_state = 3;
559
+ */
560
+ traceState: string;
561
+
562
+ /**
563
+ * A collection of attribute key/value pairs on the link.
564
+ * Attribute keys MUST be unique (it is not allowed to have more than one
565
+ * attribute with the same key).
566
+ * The behavior of software that receives duplicated keys can be unpredictable.
567
+ *
568
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 4;
569
+ */
570
+ attributes: KeyValue[];
571
+
572
+ /**
573
+ * The number of dropped attributes. If the value is 0,
574
+ * then no attributes were dropped.
575
+ *
576
+ * @generated from field: uint32 dropped_attributes_count = 5;
577
+ */
578
+ droppedAttributesCount: number;
579
+
580
+ /**
581
+ * Flags, a bit field.
582
+ *
583
+ * Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
584
+ * Context specification. To read the 8-bit W3C trace flag, use
585
+ * `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
586
+ *
587
+ * See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
588
+ *
589
+ * Bits 8 and 9 represent the 3 states of whether the link is remote.
590
+ * The states are (unknown, is not remote, is remote).
591
+ * To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
592
+ * To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
593
+ *
594
+ * Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
595
+ * When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero.
596
+ *
597
+ * [Optional].
598
+ *
599
+ * @generated from field: fixed32 flags = 6;
600
+ */
601
+ flags: number;
602
+
603
+ constructor(data?: PartialMessage<Span_Link>);
604
+
605
+ static readonly runtime: typeof proto3;
606
+ static readonly typeName = "opentelemetry.proto.trace.v1.Span.Link";
607
+ static readonly fields: FieldList;
608
+
609
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Span_Link;
610
+
611
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Span_Link;
612
+
613
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Span_Link;
614
+
615
+ static equals(a: Span_Link | PlainMessage<Span_Link> | undefined, b: Span_Link | PlainMessage<Span_Link> | undefined): boolean;
616
+ }
617
+
618
+ /**
619
+ * The Status type defines a logical error model that is suitable for different
620
+ * programming environments, including REST APIs and RPC APIs.
621
+ *
622
+ * @generated from message opentelemetry.proto.trace.v1.Status
623
+ */
624
+ export declare class Status extends Message<Status> {
625
+ /**
626
+ * A developer-facing human readable error message.
627
+ *
628
+ * @generated from field: string message = 2;
629
+ */
630
+ message: string;
631
+
632
+ /**
633
+ * The status code.
634
+ *
635
+ * @generated from field: opentelemetry.proto.trace.v1.Status.StatusCode code = 3;
636
+ */
637
+ code: Status_StatusCode;
638
+
639
+ constructor(data?: PartialMessage<Status>);
640
+
641
+ static readonly runtime: typeof proto3;
642
+ static readonly typeName = "opentelemetry.proto.trace.v1.Status";
643
+ static readonly fields: FieldList;
644
+
645
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Status;
646
+
647
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Status;
648
+
649
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Status;
650
+
651
+ static equals(a: Status | PlainMessage<Status> | undefined, b: Status | PlainMessage<Status> | undefined): boolean;
652
+ }
653
+
654
+ /**
655
+ * For the semantics of status codes see
656
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
657
+ *
658
+ * @generated from enum opentelemetry.proto.trace.v1.Status.StatusCode
659
+ */
660
+ export declare enum Status_StatusCode {
661
+ /**
662
+ * The default status.
663
+ *
664
+ * @generated from enum value: STATUS_CODE_UNSET = 0;
665
+ */
666
+ UNSET = 0,
667
+
668
+ /**
669
+ * The Span has been validated by an Application developer or Operator to
670
+ * have completed successfully.
671
+ *
672
+ * @generated from enum value: STATUS_CODE_OK = 1;
673
+ */
674
+ OK = 1,
675
+
676
+ /**
677
+ * The Span contains an error.
678
+ *
679
+ * @generated from enum value: STATUS_CODE_ERROR = 2;
680
+ */
681
+ ERROR = 2,
682
+ }
683
+