@opentelemetry/otlp-grpc-exporter-base 0.51.1 → 0.52.1
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/OTLPGRPCExporterNodeBase.d.ts +3 -3
- package/build/src/OTLPGRPCExporterNodeBase.js +1 -2
- package/build/src/OTLPGRPCExporterNodeBase.js.map +1 -1
- package/build/src/index.d.ts +0 -1
- package/build/src/index.js +1 -5
- package/build/src/index.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 +15 -19
- package/build/src/generated/root.d.ts +0 -4
- package/build/src/generated/root.js +0 -12752
- package/build/src/generated/root.js.map +0 -1
- package/build/src/internal-types.d.ts +0 -8
- package/build/src/internal-types.js +0 -18
- package/build/src/internal-types.js.map +0 -1
- package/build/src/serializers.d.ts +0 -12
- package/build/src/serializers.js +0 -56
- package/build/src/serializers.js.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type * as protobuf from 'protobufjs';
|
|
2
|
-
export interface ExportType<T, R = T & {
|
|
3
|
-
toJSON: () => unknown;
|
|
4
|
-
}> {
|
|
5
|
-
encode(message: T, writer?: protobuf.Writer): protobuf.Writer;
|
|
6
|
-
decode(reader: protobuf.Reader | Uint8Array, length?: number): R;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=internal-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../../src/internal-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","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 type * as protobuf from 'protobufjs';\n\nexport interface ExportType<T, R = T & { toJSON: () => unknown }> {\n encode(message: T, writer?: protobuf.Writer): protobuf.Writer;\n decode(reader: protobuf.Reader | Uint8Array, length?: number): R;\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IExportLogsServiceRequest, IExportLogsServiceResponse, IExportMetricsServiceRequest, IExportMetricsServiceResponse, IExportTraceServiceRequest, IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
|
|
2
|
-
/**
|
|
3
|
-
* Serializes and deserializes the OTLP request/response to and from {@link Uint8Array}
|
|
4
|
-
*/
|
|
5
|
-
export interface ISerializer<Request, Response> {
|
|
6
|
-
serializeRequest(request: Request): Uint8Array | undefined;
|
|
7
|
-
deserializeResponse(data: Uint8Array): Response;
|
|
8
|
-
}
|
|
9
|
-
export declare const LogsSerializer: ISerializer<IExportLogsServiceRequest, IExportLogsServiceResponse>;
|
|
10
|
-
export declare const TraceSerializer: ISerializer<IExportTraceServiceRequest, IExportTraceServiceResponse>;
|
|
11
|
-
export declare const MetricsSerializer: ISerializer<IExportMetricsServiceRequest, IExportMetricsServiceResponse>;
|
|
12
|
-
//# sourceMappingURL=serializers.d.ts.map
|
package/build/src/serializers.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
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.MetricsSerializer = exports.TraceSerializer = exports.LogsSerializer = void 0;
|
|
19
|
-
const root = require("./generated/root");
|
|
20
|
-
const logsResponseType = root.opentelemetry.proto.collector.logs.v1
|
|
21
|
-
.ExportLogsServiceResponse;
|
|
22
|
-
const logsRequestType = root.opentelemetry.proto.collector.logs.v1
|
|
23
|
-
.ExportLogsServiceRequest;
|
|
24
|
-
const metricsResponseType = root.opentelemetry.proto.collector.metrics.v1
|
|
25
|
-
.ExportMetricsServiceResponse;
|
|
26
|
-
const metricsRequestType = root.opentelemetry.proto.collector.metrics.v1
|
|
27
|
-
.ExportMetricsServiceRequest;
|
|
28
|
-
const traceResponseType = root.opentelemetry.proto.collector.trace.v1
|
|
29
|
-
.ExportTraceServiceResponse;
|
|
30
|
-
const traceRequestType = root.opentelemetry.proto.collector.trace.v1
|
|
31
|
-
.ExportTraceServiceRequest;
|
|
32
|
-
exports.LogsSerializer = {
|
|
33
|
-
serializeRequest: (arg) => {
|
|
34
|
-
return Buffer.from(logsRequestType.encode(arg).finish());
|
|
35
|
-
},
|
|
36
|
-
deserializeResponse: (arg) => {
|
|
37
|
-
return logsResponseType.decode(arg);
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
exports.TraceSerializer = {
|
|
41
|
-
serializeRequest: (arg) => {
|
|
42
|
-
return Buffer.from(traceRequestType.encode(arg).finish());
|
|
43
|
-
},
|
|
44
|
-
deserializeResponse: (arg) => {
|
|
45
|
-
return traceResponseType.decode(arg);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
exports.MetricsSerializer = {
|
|
49
|
-
serializeRequest: (arg) => {
|
|
50
|
-
return Buffer.from(metricsRequestType.encode(arg).finish());
|
|
51
|
-
},
|
|
52
|
-
deserializeResponse: (arg) => {
|
|
53
|
-
return metricsResponseType.decode(arg);
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=serializers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../src/serializers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AAWzC,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;KAChE,yBAAmE,CAAC;AAEvE,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;KAC/D,wBAAiE,CAAC;AAErE,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;KACtE,4BAAyE,CAAC;AAE7E,MAAM,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAA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ent":["/*\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 {\n IExportLogsServiceRequest,\n IExportLogsServiceResponse,\n IExportMetricsServiceRequest,\n IExportMetricsServiceResponse,\n IExportTraceServiceRequest,\n IExportTraceServiceResponse,\n} from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\n\nconst logsResponseType = root.opentelemetry.proto.collector.logs.v1\n .ExportLogsServiceResponse as ExportType<IExportLogsServiceResponse>;\n\nconst logsRequestType = root.opentelemetry.proto.collector.logs.v1\n .ExportLogsServiceRequest as ExportType<IExportLogsServiceRequest>;\n\nconst metricsResponseType = root.opentelemetry.proto.collector.metrics.v1\n .ExportMetricsServiceResponse as ExportType<IExportMetricsServiceResponse>;\n\nconst metricsRequestType = root.opentelemetry.proto.collector.metrics.v1\n .ExportMetricsServiceRequest as ExportType<IExportMetricsServiceRequest>;\n\nconst traceResponseType = root.opentelemetry.proto.collector.trace.v1\n .ExportTraceServiceResponse as ExportType<IExportTraceServiceResponse>;\n\nconst traceRequestType = root.opentelemetry.proto.collector.trace.v1\n .ExportTraceServiceRequest as ExportType<IExportTraceServiceRequest>;\n\n/**\n * Serializes and deserializes the OTLP request/response to and from {@link Uint8Array}\n */\nexport interface ISerializer<Request, Response> {\n serializeRequest(request: Request): Uint8Array | undefined;\n deserializeResponse(data: Uint8Array): Response;\n}\n\nexport const LogsSerializer: ISerializer<\n IExportLogsServiceRequest,\n IExportLogsServiceResponse\n> = {\n serializeRequest: (arg: IExportLogsServiceRequest) => {\n return Buffer.from(logsRequestType.encode(arg).finish());\n },\n deserializeResponse: (arg: Buffer) => {\n return logsResponseType.decode(arg);\n },\n};\n\nexport const TraceSerializer: ISerializer<\n IExportTraceServiceRequest,\n IExportTraceServiceResponse\n> = {\n serializeRequest: (arg: IExportTraceServiceRequest) => {\n return Buffer.from(traceRequestType.encode(arg).finish());\n },\n deserializeResponse: (arg: Buffer) => {\n return traceResponseType.decode(arg);\n },\n};\n\nexport const MetricsSerializer: ISerializer<\n IExportMetricsServiceRequest,\n IExportMetricsServiceResponse\n> = {\n serializeRequest: (arg: IExportMetricsServiceRequest) => {\n return Buffer.from(metricsRequestType.encode(arg).finish());\n },\n deserializeResponse: (arg: Buffer) => {\n return metricsResponseType.decode(arg);\n },\n};\n"]}
|