Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Apr 21, 2021
1 parent 920c978 commit e6c81dc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@ function stringify(
let labelsStr = '';

for (const [key, val] of Object.entries(labels)) {
const santizedLabelName = sanitizePrometheusMetricName(key);
const sanitizedLabelName = sanitizePrometheusMetricName(key);
hasLabel = true;
labelsStr += `${
labelsStr.length > 0 ? ',' : ''
}${santizedLabelName}="${escapeLabelValue(val)}"`;
}${sanitizedLabelName}="${escapeLabelValue(val)}"`;
}
if (additionalLabels) {
for (const [key, val] of Object.entries(additionalLabels)) {
const santizedLabelName = sanitizePrometheusMetricName(key);
const sanitizedLabelName = sanitizePrometheusMetricName(key);
hasLabel = true;
labelsStr += `${
labelsStr.length > 0 ? ',' : ''
}${santizedLabelName}="${escapeLabelValue(val)}"`;
}${sanitizedLabelName}="${escapeLabelValue(val)}"`;
}
}

Expand Down

0 comments on commit e6c81dc

Please sign in to comment.