{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yEAAsE;AAEtE,sEAAwE;AACxE,iFAAuG;AAEvG;;GAEG;AACH,MAAa,kBAAmB,SAAQ,+CAAsB;IAC5D,YAAY,MAA2D;QACrE,KAAK,CACH,IAAA,oDAAqC,EACnC,MAAM,IAAI,EAAE,EACZ,wCAAqB,EACrB,YAAY,EACZ,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,EACD,MAAM,CACP,CAAC;IACJ,CAAC;CACF;AAZD,gDAYC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonMetricsSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\n/**\n * Collector Metric Exporter for Web\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n  constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions) {\n    super(\n      createLegacyOtlpBrowserExportDelegate(\n        config ?? {},\n        JsonMetricsSerializer,\n        'v1/metrics',\n        { 'Content-Type': 'application/json' }\n      ),\n      config\n    );\n  }\n}\n"]}