From 9b54969e6102742cce1dd5e9611dabe7b248da28 Mon Sep 17 00:00:00 2001 From: shiv Date: Wed, 3 Jun 2020 16:34:25 -0400 Subject: [PATCH] use LabelValues instead labelValues --- packages/opentelemetry-exporter-prometheus/src/prometheus.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opentelemetry-exporter-prometheus/src/prometheus.ts b/packages/opentelemetry-exporter-prometheus/src/prometheus.ts index 84c2fed821..7ebd8dc04e 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]];