@opentelemetry/otlp-grpc-exporter-base 0.39.1 → 0.41.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.
@@ -1 +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"]}
1
+ {"version":3,"file":"LogsExportServiceClient.js","sourceRoot":"","sources":["../../src/LogsExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAOtC,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 {\n IExportLogsServiceRequest,\n IExportLogsServiceResponse,\n} from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\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"]}
@@ -1 +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"]}
1
+ {"version":3,"file":"MetricsExportServiceClient.js","sourceRoot":"","sources":["../../src/MetricsExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAOtC,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 {\n IExportMetricsServiceRequest,\n IExportMetricsServiceResponse,\n} from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\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"]}
@@ -1 +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"]}
1
+ {"version":3,"file":"TraceExportServiceClient.js","sourceRoot":"","sources":["../../src/TraceExportServiceClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAAyC;AACzC,sCAAsC;AAOtC,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 {\n IExportTraceServiceRequest,\n IExportTraceServiceResponse,\n} from '@opentelemetry/otlp-transformer';\nimport { ExportType } from './internal-types';\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"]}