@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.
- package/README.md +0 -5
- package/dist/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +3 -1
- package/dist/audio-common.d.ts +1 -1
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +5 -0
- package/dist/gen/app/v1/app_pb.d.ts +139 -0
- package/dist/gen/app/v1/robot_pb.d.ts +55 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
- package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
- package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
- package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
- package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
- package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
- package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
- package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
- package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
- package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
- package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
- package/dist/main.es.js +13348 -12911
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +20 -16
- package/dist/robot/robot.d.ts +19 -10
- package/dist/robot.d.ts +1 -1
- package/dist/services/motion/client.d.ts +1 -0
- package/dist/services/motion/motion.d.ts +1 -0
- package/dist/services/video/client.d.ts +20 -0
- package/dist/services/video/index.d.ts +3 -0
- package/dist/services/video/types.d.ts +9 -0
- package/dist/services/video/video.d.ts +44 -0
- package/dist/services/video.d.ts +3 -0
- package/package.json +1 -1
- package/dist/app/app-client.spec.d.ts +0 -1
- package/dist/app/billing-client.spec.d.ts +0 -1
- package/dist/app/data-client.spec.d.ts +0 -1
- package/dist/app/ml-training-client.spec.d.ts +0 -1
- package/dist/app/provisioning-client.spec.d.ts +0 -1
- package/dist/app/viam-client.spec.d.ts +0 -1
- package/dist/components/audio-in/client.spec.d.ts +0 -1
- package/dist/components/audio-out/client.spec.d.ts +0 -1
- package/dist/components/board/client.spec.d.ts +0 -1
- package/dist/components/input-controller/client.spec.d.ts +0 -1
- package/dist/components/movement-sensor/client.spec.d.ts +0 -1
- package/dist/components/power-sensor/client.spec.d.ts +0 -1
- package/dist/extra/stream/client.spec.d.ts +0 -1
- package/dist/services/discovery/client.spec.d.ts +0 -1
- package/dist/services/motion/client.spec.d.ts +0 -1
- package/dist/services/navigation/client.spec.d.ts +0 -1
- package/dist/services/slam/client.spec.d.ts +0 -1
- package/dist/services/vision/client.spec.d.ts +0 -1
- package/dist/services/world-state-store/client.spec.d.ts +0 -1
|
@@ -0,0 +1,135 @@
|
|
|
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/collector/metrics/v1/metrics_service.proto (package opentelemetry.proto.collector.metrics.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 { ResourceMetrics } from "../../../metrics/v1/metrics_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest
|
|
26
|
+
*/
|
|
27
|
+
export declare class ExportMetricsServiceRequest extends Message<ExportMetricsServiceRequest> {
|
|
28
|
+
/**
|
|
29
|
+
* An array of ResourceMetrics.
|
|
30
|
+
* For data coming from a single resource this array will typically contain one
|
|
31
|
+
* element. Intermediary nodes (such as OpenTelemetry Collector) that receive
|
|
32
|
+
* data from multiple origins typically batch the data before forwarding further and
|
|
33
|
+
* in that case this array will contain multiple elements.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: repeated opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;
|
|
36
|
+
*/
|
|
37
|
+
resourceMetrics: ResourceMetrics[];
|
|
38
|
+
|
|
39
|
+
constructor(data?: PartialMessage<ExportMetricsServiceRequest>);
|
|
40
|
+
|
|
41
|
+
static readonly runtime: typeof proto3;
|
|
42
|
+
static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest";
|
|
43
|
+
static readonly fields: FieldList;
|
|
44
|
+
|
|
45
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsServiceRequest;
|
|
46
|
+
|
|
47
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsServiceRequest;
|
|
48
|
+
|
|
49
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsServiceRequest;
|
|
50
|
+
|
|
51
|
+
static equals(a: ExportMetricsServiceRequest | PlainMessage<ExportMetricsServiceRequest> | undefined, b: ExportMetricsServiceRequest | PlainMessage<ExportMetricsServiceRequest> | undefined): boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse
|
|
56
|
+
*/
|
|
57
|
+
export declare class ExportMetricsServiceResponse extends Message<ExportMetricsServiceResponse> {
|
|
58
|
+
/**
|
|
59
|
+
* The details of a partially successful export request.
|
|
60
|
+
*
|
|
61
|
+
* If the request is only partially accepted
|
|
62
|
+
* (i.e. when the server accepts only parts of the data and rejects the rest)
|
|
63
|
+
* the server MUST initialize the `partial_success` field and MUST
|
|
64
|
+
* set the `rejected_<signal>` with the number of items it rejected.
|
|
65
|
+
*
|
|
66
|
+
* Servers MAY also make use of the `partial_success` field to convey
|
|
67
|
+
* warnings/suggestions to senders even when the request was fully accepted.
|
|
68
|
+
* In such cases, the `rejected_<signal>` MUST have a value of `0` and
|
|
69
|
+
* the `error_message` MUST be non-empty.
|
|
70
|
+
*
|
|
71
|
+
* A `partial_success` message with an empty value (rejected_<signal> = 0 and
|
|
72
|
+
* `error_message` = "") is equivalent to it not being set/present. Senders
|
|
73
|
+
* SHOULD interpret it the same way as in the full success case.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess partial_success = 1;
|
|
76
|
+
*/
|
|
77
|
+
partialSuccess?: ExportMetricsPartialSuccess;
|
|
78
|
+
|
|
79
|
+
constructor(data?: PartialMessage<ExportMetricsServiceResponse>);
|
|
80
|
+
|
|
81
|
+
static readonly runtime: typeof proto3;
|
|
82
|
+
static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse";
|
|
83
|
+
static readonly fields: FieldList;
|
|
84
|
+
|
|
85
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsServiceResponse;
|
|
86
|
+
|
|
87
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsServiceResponse;
|
|
88
|
+
|
|
89
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsServiceResponse;
|
|
90
|
+
|
|
91
|
+
static equals(a: ExportMetricsServiceResponse | PlainMessage<ExportMetricsServiceResponse> | undefined, b: ExportMetricsServiceResponse | PlainMessage<ExportMetricsServiceResponse> | undefined): boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @generated from message opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess
|
|
96
|
+
*/
|
|
97
|
+
export declare class ExportMetricsPartialSuccess extends Message<ExportMetricsPartialSuccess> {
|
|
98
|
+
/**
|
|
99
|
+
* The number of rejected data points.
|
|
100
|
+
*
|
|
101
|
+
* A `rejected_<signal>` field holding a `0` value indicates that the
|
|
102
|
+
* request was fully accepted.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: int64 rejected_data_points = 1;
|
|
105
|
+
*/
|
|
106
|
+
rejectedDataPoints: bigint;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A developer-facing human-readable message in English. It should be used
|
|
110
|
+
* either to explain why the server rejected parts of the data during a partial
|
|
111
|
+
* success or to convey warnings/suggestions during a full success. The message
|
|
112
|
+
* should offer guidance on how users can address such issues.
|
|
113
|
+
*
|
|
114
|
+
* error_message is an optional field. An error_message with an empty value
|
|
115
|
+
* is equivalent to it not being set.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string error_message = 2;
|
|
118
|
+
*/
|
|
119
|
+
errorMessage: string;
|
|
120
|
+
|
|
121
|
+
constructor(data?: PartialMessage<ExportMetricsPartialSuccess>);
|
|
122
|
+
|
|
123
|
+
static readonly runtime: typeof proto3;
|
|
124
|
+
static readonly typeName = "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess";
|
|
125
|
+
static readonly fields: FieldList;
|
|
126
|
+
|
|
127
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportMetricsPartialSuccess;
|
|
128
|
+
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportMetricsPartialSuccess;
|
|
130
|
+
|
|
131
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportMetricsPartialSuccess;
|
|
132
|
+
|
|
133
|
+
static equals(a: ExportMetricsPartialSuccess | PlainMessage<ExportMetricsPartialSuccess> | undefined, b: ExportMetricsPartialSuccess | PlainMessage<ExportMetricsPartialSuccess> | undefined): boolean;
|
|
134
|
+
}
|
|
135
|
+
|
package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2023, 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-connect-es v1.5.0
|
|
16
|
+
// @generated from file opentelemetry/proto/collector/profiles/v1development/profiles_service.proto (package opentelemetry.proto.collector.profiles.v1development, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { ExportProfilesServiceRequest, ExportProfilesServiceResponse } from "./profiles_service_pb.js";
|
|
21
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Service that can be used to push profiles between one Application instrumented with
|
|
25
|
+
* OpenTelemetry and a collector, or between a collector and a central collector.
|
|
26
|
+
*
|
|
27
|
+
* @generated from service opentelemetry.proto.collector.profiles.v1development.ProfilesService
|
|
28
|
+
*/
|
|
29
|
+
export declare const ProfilesService: {
|
|
30
|
+
readonly typeName: "opentelemetry.proto.collector.profiles.v1development.ProfilesService",
|
|
31
|
+
readonly methods: {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from rpc opentelemetry.proto.collector.profiles.v1development.ProfilesService.Export
|
|
34
|
+
*/
|
|
35
|
+
readonly export: {
|
|
36
|
+
readonly name: "Export",
|
|
37
|
+
readonly I: typeof ExportProfilesServiceRequest,
|
|
38
|
+
readonly O: typeof ExportProfilesServiceResponse,
|
|
39
|
+
readonly kind: MethodKind.Unary,
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// Copyright 2023, 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/collector/profiles/v1development/profiles_service.proto (package opentelemetry.proto.collector.profiles.v1development, 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 { ProfilesDictionary, ResourceProfiles } from "../../../profiles/v1development/profiles_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest
|
|
26
|
+
*/
|
|
27
|
+
export declare class ExportProfilesServiceRequest extends Message<ExportProfilesServiceRequest> {
|
|
28
|
+
/**
|
|
29
|
+
* An array of ResourceProfiles.
|
|
30
|
+
* For data coming from a single resource this array will typically contain one
|
|
31
|
+
* element. Intermediary nodes (such as OpenTelemetry Collector) that receive
|
|
32
|
+
* data from multiple origins typically batch the data before forwarding further and
|
|
33
|
+
* in that case this array will contain multiple elements.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: repeated opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
|
|
36
|
+
*/
|
|
37
|
+
resourceProfiles: ResourceProfiles[];
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The reference table containing all data shared by profiles across the message being sent.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
|
|
43
|
+
*/
|
|
44
|
+
dictionary?: ProfilesDictionary;
|
|
45
|
+
|
|
46
|
+
constructor(data?: PartialMessage<ExportProfilesServiceRequest>);
|
|
47
|
+
|
|
48
|
+
static readonly runtime: typeof proto3;
|
|
49
|
+
static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest";
|
|
50
|
+
static readonly fields: FieldList;
|
|
51
|
+
|
|
52
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesServiceRequest;
|
|
53
|
+
|
|
54
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesServiceRequest;
|
|
55
|
+
|
|
56
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesServiceRequest;
|
|
57
|
+
|
|
58
|
+
static equals(a: ExportProfilesServiceRequest | PlainMessage<ExportProfilesServiceRequest> | undefined, b: ExportProfilesServiceRequest | PlainMessage<ExportProfilesServiceRequest> | undefined): boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse
|
|
63
|
+
*/
|
|
64
|
+
export declare class ExportProfilesServiceResponse extends Message<ExportProfilesServiceResponse> {
|
|
65
|
+
/**
|
|
66
|
+
* The details of a partially successful export request.
|
|
67
|
+
*
|
|
68
|
+
* If the request is only partially accepted
|
|
69
|
+
* (i.e. when the server accepts only parts of the data and rejects the rest)
|
|
70
|
+
* the server MUST initialize the `partial_success` field and MUST
|
|
71
|
+
* set the `rejected_<signal>` with the number of items it rejected.
|
|
72
|
+
*
|
|
73
|
+
* Servers MAY also make use of the `partial_success` field to convey
|
|
74
|
+
* warnings/suggestions to senders even when the request was fully accepted.
|
|
75
|
+
* In such cases, the `rejected_<signal>` MUST have a value of `0` and
|
|
76
|
+
* the `error_message` MUST be non-empty.
|
|
77
|
+
*
|
|
78
|
+
* A `partial_success` message with an empty value (rejected_<signal> = 0 and
|
|
79
|
+
* `error_message` = "") is equivalent to it not being set/present. Senders
|
|
80
|
+
* SHOULD interpret it the same way as in the full success case.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess partial_success = 1;
|
|
83
|
+
*/
|
|
84
|
+
partialSuccess?: ExportProfilesPartialSuccess;
|
|
85
|
+
|
|
86
|
+
constructor(data?: PartialMessage<ExportProfilesServiceResponse>);
|
|
87
|
+
|
|
88
|
+
static readonly runtime: typeof proto3;
|
|
89
|
+
static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse";
|
|
90
|
+
static readonly fields: FieldList;
|
|
91
|
+
|
|
92
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesServiceResponse;
|
|
93
|
+
|
|
94
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesServiceResponse;
|
|
95
|
+
|
|
96
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesServiceResponse;
|
|
97
|
+
|
|
98
|
+
static equals(a: ExportProfilesServiceResponse | PlainMessage<ExportProfilesServiceResponse> | undefined, b: ExportProfilesServiceResponse | PlainMessage<ExportProfilesServiceResponse> | undefined): boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess
|
|
103
|
+
*/
|
|
104
|
+
export declare class ExportProfilesPartialSuccess extends Message<ExportProfilesPartialSuccess> {
|
|
105
|
+
/**
|
|
106
|
+
* The number of rejected profiles.
|
|
107
|
+
*
|
|
108
|
+
* A `rejected_<signal>` field holding a `0` value indicates that the
|
|
109
|
+
* request was fully accepted.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: int64 rejected_profiles = 1;
|
|
112
|
+
*/
|
|
113
|
+
rejectedProfiles: bigint;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A developer-facing human-readable message in English. It should be used
|
|
117
|
+
* either to explain why the server rejected parts of the data during a partial
|
|
118
|
+
* success or to convey warnings/suggestions during a full success. The message
|
|
119
|
+
* should offer guidance on how users can address such issues.
|
|
120
|
+
*
|
|
121
|
+
* error_message is an optional field. An error_message with an empty value
|
|
122
|
+
* is equivalent to it not being set.
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: string error_message = 2;
|
|
125
|
+
*/
|
|
126
|
+
errorMessage: string;
|
|
127
|
+
|
|
128
|
+
constructor(data?: PartialMessage<ExportProfilesPartialSuccess>);
|
|
129
|
+
|
|
130
|
+
static readonly runtime: typeof proto3;
|
|
131
|
+
static readonly typeName = "opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess";
|
|
132
|
+
static readonly fields: FieldList;
|
|
133
|
+
|
|
134
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportProfilesPartialSuccess;
|
|
135
|
+
|
|
136
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportProfilesPartialSuccess;
|
|
137
|
+
|
|
138
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportProfilesPartialSuccess;
|
|
139
|
+
|
|
140
|
+
static equals(a: ExportProfilesPartialSuccess | PlainMessage<ExportProfilesPartialSuccess> | undefined, b: ExportProfilesPartialSuccess | PlainMessage<ExportProfilesPartialSuccess> | undefined): boolean;
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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-connect-es v1.5.0
|
|
16
|
+
// @generated from file opentelemetry/proto/collector/trace/v1/trace_service.proto (package opentelemetry.proto.collector.trace.v1, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { ExportTraceServiceRequest, ExportTraceServiceResponse } from "./trace_service_pb.js";
|
|
21
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Service that can be used to push spans between one Application instrumented with
|
|
25
|
+
* OpenTelemetry and a collector, or between a collector and a central collector (in this
|
|
26
|
+
* case spans are sent/received to/from multiple Applications).
|
|
27
|
+
*
|
|
28
|
+
* @generated from service opentelemetry.proto.collector.trace.v1.TraceService
|
|
29
|
+
*/
|
|
30
|
+
export declare const TraceService: {
|
|
31
|
+
readonly typeName: "opentelemetry.proto.collector.trace.v1.TraceService",
|
|
32
|
+
readonly methods: {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc opentelemetry.proto.collector.trace.v1.TraceService.Export
|
|
35
|
+
*/
|
|
36
|
+
readonly export: {
|
|
37
|
+
readonly name: "Export",
|
|
38
|
+
readonly I: typeof ExportTraceServiceRequest,
|
|
39
|
+
readonly O: typeof ExportTraceServiceResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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/collector/trace/v1/trace_service.proto (package opentelemetry.proto.collector.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 { ResourceSpans } from "../../../trace/v1/trace_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest
|
|
26
|
+
*/
|
|
27
|
+
export declare class ExportTraceServiceRequest extends Message<ExportTraceServiceRequest> {
|
|
28
|
+
/**
|
|
29
|
+
* An array of ResourceSpans.
|
|
30
|
+
* For data coming from a single resource this array will typically contain one
|
|
31
|
+
* element. Intermediary nodes (such as OpenTelemetry Collector) that receive
|
|
32
|
+
* data from multiple origins typically batch the data before forwarding further and
|
|
33
|
+
* in that case this array will contain multiple elements.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: repeated opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1;
|
|
36
|
+
*/
|
|
37
|
+
resourceSpans: ResourceSpans[];
|
|
38
|
+
|
|
39
|
+
constructor(data?: PartialMessage<ExportTraceServiceRequest>);
|
|
40
|
+
|
|
41
|
+
static readonly runtime: typeof proto3;
|
|
42
|
+
static readonly typeName = "opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest";
|
|
43
|
+
static readonly fields: FieldList;
|
|
44
|
+
|
|
45
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportTraceServiceRequest;
|
|
46
|
+
|
|
47
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportTraceServiceRequest;
|
|
48
|
+
|
|
49
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportTraceServiceRequest;
|
|
50
|
+
|
|
51
|
+
static equals(a: ExportTraceServiceRequest | PlainMessage<ExportTraceServiceRequest> | undefined, b: ExportTraceServiceRequest | PlainMessage<ExportTraceServiceRequest> | undefined): boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse
|
|
56
|
+
*/
|
|
57
|
+
export declare class ExportTraceServiceResponse extends Message<ExportTraceServiceResponse> {
|
|
58
|
+
/**
|
|
59
|
+
* The details of a partially successful export request.
|
|
60
|
+
*
|
|
61
|
+
* If the request is only partially accepted
|
|
62
|
+
* (i.e. when the server accepts only parts of the data and rejects the rest)
|
|
63
|
+
* the server MUST initialize the `partial_success` field and MUST
|
|
64
|
+
* set the `rejected_<signal>` with the number of items it rejected.
|
|
65
|
+
*
|
|
66
|
+
* Servers MAY also make use of the `partial_success` field to convey
|
|
67
|
+
* warnings/suggestions to senders even when the request was fully accepted.
|
|
68
|
+
* In such cases, the `rejected_<signal>` MUST have a value of `0` and
|
|
69
|
+
* the `error_message` MUST be non-empty.
|
|
70
|
+
*
|
|
71
|
+
* A `partial_success` message with an empty value (rejected_<signal> = 0 and
|
|
72
|
+
* `error_message` = "") is equivalent to it not being set/present. Senders
|
|
73
|
+
* SHOULD interpret it the same way as in the full success case.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess partial_success = 1;
|
|
76
|
+
*/
|
|
77
|
+
partialSuccess?: ExportTracePartialSuccess;
|
|
78
|
+
|
|
79
|
+
constructor(data?: PartialMessage<ExportTraceServiceResponse>);
|
|
80
|
+
|
|
81
|
+
static readonly runtime: typeof proto3;
|
|
82
|
+
static readonly typeName = "opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse";
|
|
83
|
+
static readonly fields: FieldList;
|
|
84
|
+
|
|
85
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportTraceServiceResponse;
|
|
86
|
+
|
|
87
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportTraceServiceResponse;
|
|
88
|
+
|
|
89
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportTraceServiceResponse;
|
|
90
|
+
|
|
91
|
+
static equals(a: ExportTraceServiceResponse | PlainMessage<ExportTraceServiceResponse> | undefined, b: ExportTraceServiceResponse | PlainMessage<ExportTraceServiceResponse> | undefined): boolean;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @generated from message opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess
|
|
96
|
+
*/
|
|
97
|
+
export declare class ExportTracePartialSuccess extends Message<ExportTracePartialSuccess> {
|
|
98
|
+
/**
|
|
99
|
+
* The number of rejected spans.
|
|
100
|
+
*
|
|
101
|
+
* A `rejected_<signal>` field holding a `0` value indicates that the
|
|
102
|
+
* request was fully accepted.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: int64 rejected_spans = 1;
|
|
105
|
+
*/
|
|
106
|
+
rejectedSpans: bigint;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A developer-facing human-readable message in English. It should be used
|
|
110
|
+
* either to explain why the server rejected parts of the data during a partial
|
|
111
|
+
* success or to convey warnings/suggestions during a full success. The message
|
|
112
|
+
* should offer guidance on how users can address such issues.
|
|
113
|
+
*
|
|
114
|
+
* error_message is an optional field. An error_message with an empty value
|
|
115
|
+
* is equivalent to it not being set.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string error_message = 2;
|
|
118
|
+
*/
|
|
119
|
+
errorMessage: string;
|
|
120
|
+
|
|
121
|
+
constructor(data?: PartialMessage<ExportTracePartialSuccess>);
|
|
122
|
+
|
|
123
|
+
static readonly runtime: typeof proto3;
|
|
124
|
+
static readonly typeName = "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess";
|
|
125
|
+
static readonly fields: FieldList;
|
|
126
|
+
|
|
127
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportTracePartialSuccess;
|
|
128
|
+
|
|
129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportTracePartialSuccess;
|
|
130
|
+
|
|
131
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportTracePartialSuccess;
|
|
132
|
+
|
|
133
|
+
static equals(a: ExportTracePartialSuccess | PlainMessage<ExportTracePartialSuccess> | undefined, b: ExportTracePartialSuccess | PlainMessage<ExportTracePartialSuccess> | undefined): boolean;
|
|
134
|
+
}
|
|
135
|
+
|