@opentelemetry/otlp-grpc-exporter-base 0.38.0 → 0.39.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/build/src/LogsExportServiceClient.d.ts +3 -0
- package/build/src/LogsExportServiceClient.js +46 -0
- package/build/src/LogsExportServiceClient.js.map +1 -0
- package/build/src/MetricsExportServiceClient.d.ts +3 -0
- package/build/src/MetricsExportServiceClient.js +46 -0
- package/build/src/MetricsExportServiceClient.js.map +1 -0
- package/build/src/TraceExportServiceClient.d.ts +3 -0
- package/build/src/TraceExportServiceClient.js +46 -0
- package/build/src/TraceExportServiceClient.js.map +1 -0
- package/build/src/generated/root.d.ts +4 -0
- package/build/src/generated/root.js +13013 -0
- package/build/src/generated/root.js.map +1 -0
- package/build/src/internal-types.d.ts +8 -0
- package/build/src/internal-types.js +18 -0
- package/build/src/internal-types.js.map +1 -0
- package/build/src/types.d.ts +6 -4
- package/build/src/types.js +1 -0
- package/build/src/types.js.map +1 -1
- package/build/src/util.d.ts +1 -1
- package/build/src/util.js +32 -28
- package/build/src/util.js.map +1 -1
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +13 -14
- package/build/protos/opentelemetry/proto/collector/logs/v1/logs_service.proto +0 -45
- package/build/protos/opentelemetry/proto/collector/metrics/v1/metrics_service.proto +0 -45
- package/build/protos/opentelemetry/proto/collector/trace/v1/trace_service.proto +0 -45
- package/build/protos/opentelemetry/proto/common/v1/common.proto +0 -87
- package/build/protos/opentelemetry/proto/logs/v1/logs.proto +0 -222
- package/build/protos/opentelemetry/proto/metrics/v1/metrics.proto +0 -711
- package/build/protos/opentelemetry/proto/resource/v1/resource.proto +0 -36
- package/build/protos/opentelemetry/proto/trace/v1/trace.proto +0 -331
- package/build/protos/opentelemetry/proto/trace/v1/trace_config.proto +0 -78
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.LogsExportServiceClient = void 0;
|
|
19
|
+
const root = require("./generated/root");
|
|
20
|
+
const grpc = require("@grpc/grpc-js");
|
|
21
|
+
const responseType = root.opentelemetry.proto.collector.logs.v1
|
|
22
|
+
.ExportLogsServiceResponse;
|
|
23
|
+
const requestType = root.opentelemetry.proto.collector.logs.v1
|
|
24
|
+
.ExportLogsServiceRequest;
|
|
25
|
+
const logsServiceDefinition = {
|
|
26
|
+
export: {
|
|
27
|
+
path: '/opentelemetry.proto.collector.logs.v1.LogsService/Export',
|
|
28
|
+
requestStream: false,
|
|
29
|
+
responseStream: false,
|
|
30
|
+
requestSerialize: (arg) => {
|
|
31
|
+
return Buffer.from(requestType.encode(arg).finish());
|
|
32
|
+
},
|
|
33
|
+
requestDeserialize: (arg) => {
|
|
34
|
+
return requestType.decode(arg);
|
|
35
|
+
},
|
|
36
|
+
responseSerialize: (arg) => {
|
|
37
|
+
return Buffer.from(responseType.encode(arg).finish());
|
|
38
|
+
},
|
|
39
|
+
responseDeserialize: (arg) => {
|
|
40
|
+
return responseType.decode(arg);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
// Creates a new instance of a gRPC service client for OTLP logs
|
|
45
|
+
exports.LogsExportServiceClient = grpc.makeGenericClientConstructor(logsServiceDefinition, 'LogsExportService');
|
|
46
|
+
//# sourceMappingURL=LogsExportServiceClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogsExportServiceClient.js","sourceRoot":"","sources":["../../src/LogsExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAKtC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;KAC5D,yBAAmE,CAAC;AAEvE,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;KAC3D,wBAAiE,CAAC;AAErE,MAAM,qBAAqB,GAAG;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,2DAA2D;QACjE,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,CAAC,GAA8B,EAAE,EAAE;YACnD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,kBAAkB,EAAE,CAAC,GAAW,EAAE,EAAE;YAClC,OAAO,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QACD,iBAAiB,EAAE,CAAC,GAA+B,EAAE,EAAE;YACrD,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,mBAAmB,EAAE,CAAC,GAAW,EAAE,EAAE;YACnC,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC;KACF;CACF,CAAC;AAEF,gEAAgE;AACnD,QAAA,uBAAuB,GAClC,IAAI,CAAC,4BAA4B,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as root from './generated/root';\nimport * as grpc from '@grpc/grpc-js';\nimport { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\nimport IExportLogsServiceResponse = root.opentelemetry.proto.collector.logs.v1.IExportLogsServiceResponse;\n\nconst responseType = root.opentelemetry.proto.collector.logs.v1\n .ExportLogsServiceResponse as ExportType<IExportLogsServiceResponse>;\n\nconst requestType = root.opentelemetry.proto.collector.logs.v1\n .ExportLogsServiceRequest as ExportType<IExportLogsServiceRequest>;\n\nconst logsServiceDefinition = {\n export: {\n path: '/opentelemetry.proto.collector.logs.v1.LogsService/Export',\n requestStream: false,\n responseStream: false,\n requestSerialize: (arg: IExportLogsServiceRequest) => {\n return Buffer.from(requestType.encode(arg).finish());\n },\n requestDeserialize: (arg: Buffer) => {\n return requestType.decode(arg);\n },\n responseSerialize: (arg: IExportLogsServiceResponse) => {\n return Buffer.from(responseType.encode(arg).finish());\n },\n responseDeserialize: (arg: Buffer) => {\n return responseType.decode(arg);\n },\n },\n};\n\n// Creates a new instance of a gRPC service client for OTLP logs\nexport const LogsExportServiceClient: grpc.ServiceClientConstructor =\n grpc.makeGenericClientConstructor(logsServiceDefinition, 'LogsExportService');\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MetricExportServiceClient = void 0;
|
|
19
|
+
const root = require("./generated/root");
|
|
20
|
+
const grpc = require("@grpc/grpc-js");
|
|
21
|
+
const responseType = root.opentelemetry.proto.collector.metrics.v1
|
|
22
|
+
.ExportMetricsServiceResponse;
|
|
23
|
+
const requestType = root.opentelemetry.proto.collector.metrics.v1
|
|
24
|
+
.ExportMetricsServiceRequest;
|
|
25
|
+
const metricsServiceDefinition = {
|
|
26
|
+
export: {
|
|
27
|
+
path: '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export',
|
|
28
|
+
requestStream: false,
|
|
29
|
+
responseStream: false,
|
|
30
|
+
requestSerialize: (arg) => {
|
|
31
|
+
return Buffer.from(requestType.encode(arg).finish());
|
|
32
|
+
},
|
|
33
|
+
requestDeserialize: (arg) => {
|
|
34
|
+
return requestType.decode(arg);
|
|
35
|
+
},
|
|
36
|
+
responseSerialize: (arg) => {
|
|
37
|
+
return Buffer.from(responseType.encode(arg).finish());
|
|
38
|
+
},
|
|
39
|
+
responseDeserialize: (arg) => {
|
|
40
|
+
return responseType.decode(arg);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
// Creates a new instance of a gRPC service client for OTLP metrics
|
|
45
|
+
exports.MetricExportServiceClient = grpc.makeGenericClientConstructor(metricsServiceDefinition, 'MetricsExportService');
|
|
46
|
+
//# sourceMappingURL=MetricsExportServiceClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsExportServiceClient.js","sourceRoot":"","sources":["../../src/MetricsExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAKtC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;KAC/D,4BAAyE,CAAC;AAE7E,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;KAC9D,2BAAuE,CAAC;AAE3E,MAAM,wBAAwB,GAAG;IAC/B,MAAM,EAAE;QACN,IAAI,EAAE,iEAAiE;QACvE,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,CAAC,GAAiC,EAAE,EAAE;YACtD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,kBAAkB,EAAE,CAAC,GAAW,EAAE,EAAE;YAClC,OAAO,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QACD,iBAAiB,EAAE,CAAC,GAAkC,EAAE,EAAE;YACxD,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,mBAAmB,EAAE,CAAC,GAAW,EAAE,EAAE;YACnC,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC;KACF;CACF,CAAC;AAEF,mEAAmE;AACtD,QAAA,yBAAyB,GACpC,IAAI,CAAC,4BAA4B,CAC/B,wBAAwB,EACxB,sBAAsB,CACvB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as root from './generated/root';\nimport * as grpc from '@grpc/grpc-js';\nimport { IExportMetricsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\nimport IExportMetricsServiceResponse = root.opentelemetry.proto.collector.metrics.v1.IExportMetricsServiceResponse;\n\nconst responseType = root.opentelemetry.proto.collector.metrics.v1\n .ExportMetricsServiceResponse as ExportType<IExportMetricsServiceResponse>;\n\nconst requestType = root.opentelemetry.proto.collector.metrics.v1\n .ExportMetricsServiceRequest as ExportType<IExportMetricsServiceRequest>;\n\nconst metricsServiceDefinition = {\n export: {\n path: '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export',\n requestStream: false,\n responseStream: false,\n requestSerialize: (arg: IExportMetricsServiceRequest) => {\n return Buffer.from(requestType.encode(arg).finish());\n },\n requestDeserialize: (arg: Buffer) => {\n return requestType.decode(arg);\n },\n responseSerialize: (arg: IExportMetricsServiceResponse) => {\n return Buffer.from(responseType.encode(arg).finish());\n },\n responseDeserialize: (arg: Buffer) => {\n return responseType.decode(arg);\n },\n },\n};\n\n// Creates a new instance of a gRPC service client for OTLP metrics\nexport const MetricExportServiceClient: grpc.ServiceClientConstructor =\n grpc.makeGenericClientConstructor(\n metricsServiceDefinition,\n 'MetricsExportService'\n );\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TraceExportServiceClient = void 0;
|
|
19
|
+
const root = require("./generated/root");
|
|
20
|
+
const grpc = require("@grpc/grpc-js");
|
|
21
|
+
const responseType = root.opentelemetry.proto.collector.trace.v1
|
|
22
|
+
.ExportTraceServiceResponse;
|
|
23
|
+
const requestType = root.opentelemetry.proto.collector.trace.v1
|
|
24
|
+
.ExportTraceServiceRequest;
|
|
25
|
+
const traceServiceDefinition = {
|
|
26
|
+
export: {
|
|
27
|
+
path: '/opentelemetry.proto.collector.trace.v1.TraceService/Export',
|
|
28
|
+
requestStream: false,
|
|
29
|
+
responseStream: false,
|
|
30
|
+
requestSerialize: (arg) => {
|
|
31
|
+
return Buffer.from(requestType.encode(arg).finish());
|
|
32
|
+
},
|
|
33
|
+
requestDeserialize: (arg) => {
|
|
34
|
+
return requestType.decode(arg);
|
|
35
|
+
},
|
|
36
|
+
responseSerialize: (arg) => {
|
|
37
|
+
return Buffer.from(responseType.encode(arg).finish());
|
|
38
|
+
},
|
|
39
|
+
responseDeserialize: (arg) => {
|
|
40
|
+
return responseType.decode(arg);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
// Creates a new instance of a gRPC service client for exporting OTLP traces
|
|
45
|
+
exports.TraceExportServiceClient = grpc.makeGenericClientConstructor(traceServiceDefinition, 'TraceExportService');
|
|
46
|
+
//# sourceMappingURL=TraceExportServiceClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TraceExportServiceClient.js","sourceRoot":"","sources":["../../src/TraceExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAKtC,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;KAC7D,0BAAqE,CAAC;AAEzE,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;KAC5D,yBAAmE,CAAC;AAEvE,MAAM,sBAAsB,GAAG;IAC7B,MAAM,EAAE;QACN,IAAI,EAAE,6DAA6D;QACnE,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,gBAAgB,EAAE,CAAC,GAA+B,EAAE,EAAE;YACpD,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,kBAAkB,EAAE,CAAC,GAAW,EAAE,EAAE;YAClC,OAAO,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QACD,iBAAiB,EAAE,CAAC,GAAgC,EAAE,EAAE;YACtD,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,mBAAmB,EAAE,CAAC,GAAW,EAAE,EAAE;YACnC,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC;KACF;CACF,CAAC;AAEF,4EAA4E;AAC/D,QAAA,wBAAwB,GACnC,IAAI,CAAC,4BAA4B,CAC/B,sBAAsB,EACtB,oBAAoB,CACrB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as root from './generated/root';\nimport * as grpc from '@grpc/grpc-js';\nimport { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\nimport IExportTraceServiceResponse = root.opentelemetry.proto.collector.trace.v1.IExportTraceServiceResponse;\n\nconst responseType = root.opentelemetry.proto.collector.trace.v1\n .ExportTraceServiceResponse as ExportType<IExportTraceServiceResponse>;\n\nconst requestType = root.opentelemetry.proto.collector.trace.v1\n .ExportTraceServiceRequest as ExportType<IExportTraceServiceRequest>;\n\nconst traceServiceDefinition = {\n export: {\n path: '/opentelemetry.proto.collector.trace.v1.TraceService/Export',\n requestStream: false,\n responseStream: false,\n requestSerialize: (arg: IExportTraceServiceRequest) => {\n return Buffer.from(requestType.encode(arg).finish());\n },\n requestDeserialize: (arg: Buffer) => {\n return requestType.decode(arg);\n },\n responseSerialize: (arg: IExportTraceServiceResponse) => {\n return Buffer.from(responseType.encode(arg).finish());\n },\n responseDeserialize: (arg: Buffer) => {\n return responseType.decode(arg);\n },\n },\n};\n\n// Creates a new instance of a gRPC service client for exporting OTLP traces\nexport const TraceExportServiceClient: grpc.ServiceClientConstructor =\n grpc.makeGenericClientConstructor(\n traceServiceDefinition,\n 'TraceExportService'\n );\n"]}
|