{"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,0EAAqE;AACrE,sEAAyE;AACzE,2EAGqD;AAMrD;;GAEG;AACH,MAAa,eACX,SAAQ,qCAAqC;IAG7C,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,IAAA,wCAA4B,EAC1B,IAAA,oCAAwB,EAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClD,cAAc,EAAE,wBAAwB;SACzC,CAAC,EACF,yCAAsB,CACvB,CACF,CAAC;IACJ,CAAC;CACF;AAdD,0CAcC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport {\n  convertLegacyHttpOptions,\n  createOtlpHttpExportDelegate,\n} from '@opentelemetry/otlp-exporter-base/node-http';\nimport type {\n  ReadableLogRecord,\n  LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\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          'Content-Type': 'application/x-protobuf',\n        }),\n        ProtobufLogsSerializer\n      )\n    );\n  }\n}\n"]}