{"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,gBAAgB,GAEjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,gBAAqC;IAG7C,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClD,YAAY,EAAE,iCAAiC,OAAO,EAAE;YACxD,cAAc,EAAE,wBAAwB;SACzC,CAAC,EACF,sBAAsB,CACvB,CACF,CAAC;IACJ,CAAC;CACF","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 {\n  OTLPExporterBase,\n  OTLPExporterNodeConfigBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport {\n  convertLegacyHttpOptions,\n  createOtlpHttpExportDelegate,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\nimport { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';\nimport { VERSION } from '../../version';\n\n/**\n * OTLP Log Protobuf Exporter for Node.js\n */\nexport class OTLPLogExporter\n  extends OTLPExporterBase<ReadableLogRecord[]>\n  implements LogRecordExporter\n{\n  constructor(config: OTLPExporterNodeConfigBase = {}) {\n    super(\n      createOtlpHttpExportDelegate(\n        convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {\n          'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n          'Content-Type': 'application/x-protobuf',\n        }),\n        ProtobufLogsSerializer\n      )\n    );\n  }\n}\n"]}