Skip to content

Commit

Permalink
use LabelValues<string> instead labelValues
Browse files Browse the repository at this point in the history
  • Loading branch information
shivkanya9146 committed Jun 3, 2020
1 parent 1462106 commit 9b54969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry-exporter-prometheus/src/prometheus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -160,7 +160,7 @@ export class PrometheusExporter implements MetricExporter {
}

private _getLabelValues(keys: string[], labels: api.Labels) {
const labelValues: labelValues = {};
const labelValues: LabelValues<string> = {};
for (let i = 0; i < keys.length; i++) {
if (labels[keys[i]] !== null) {
labelValues[keys[i]] = labels[keys[i]];
Expand Down

0 comments on commit 9b54969

Please sign in to comment.