{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC5D,YACE,SAAiE,EAAE;QAEnE,KAAK,CACH,qCAAqC,CACnC,MAAM,EACN,yBAAyB,EACzB,YAAY,EACZ,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAC7C,EACD,MAAM,CACP,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { OTLPMetricExporterOptions } from '@opentelemetry/exporter-metrics-otlp-http';\nimport { OTLPMetricExporterBase } from '@opentelemetry/exporter-metrics-otlp-http';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufMetricsSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n  constructor(\n    config: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions = {}\n  ) {\n    super(\n      createLegacyOtlpBrowserExportDelegate(\n        config,\n        ProtobufMetricsSerializer,\n        'v1/metrics',\n        { 'Content-Type': 'application/x-protobuf' }\n      ),\n      config\n    );\n  }\n}\n"]}