diff --git a/packages/opentelemetry-exporter-prometheus/src/prometheus.ts b/packages/opentelemetry-exporter-prometheus/src/prometheus.ts index 84c2fed8215..7ebd8dc04e4 100644 --- a/packages/opentelemetry-exporter-prometheus/src/prometheus.ts +++ b/packages/opentelemetry-exporter-prometheus/src/prometheus.ts @@ -31,7 +31,7 @@ import { } from '@opentelemetry/metrics'; import * as api from '@opentelemetry/api'; import { createServer, IncomingMessage, Server, ServerResponse } from 'http'; -import { Counter, Gauge, labelValues, Metric, Registry } from 'prom-client'; +import { Counter, Gauge, LabelValues, Metric, Registry } from 'prom-client'; import * as url from 'url'; import { ExporterConfig } from './export/types'; @@ -160,7 +160,7 @@ export class PrometheusExporter implements MetricExporter { } private _getLabelValues(keys: string[], labels: api.Labels) { - const labelValues: labelValues = {}; + const labelValues: LabelValues = {}; for (let i = 0; i < keys.length; i++) { if (labels[keys[i]] !== null) { labelValues[keys[i]] = labels[keys[i]];