@opentelemetry/exporter-prometheus
Advanced tools
Comparing version 0.18.3-alpha.31 to 0.18.3-alpha.34
@@ -89,9 +89,11 @@ "use strict"; | ||
for (const [key, val] of Object.entries(labels)) { | ||
const sanitizedLabelName = sanitizePrometheusMetricName(key); | ||
hasLabel = true; | ||
labelsStr += `${labelsStr.length > 0 ? ',' : ''}${key}="${escapeLabelValue(val)}"`; | ||
labelsStr += `${labelsStr.length > 0 ? ',' : ''}${sanitizedLabelName}="${escapeLabelValue(val)}"`; | ||
} | ||
if (additionalLabels) { | ||
for (const [key, val] of Object.entries(additionalLabels)) { | ||
const sanitizedLabelName = sanitizePrometheusMetricName(key); | ||
hasLabel = true; | ||
labelsStr += `${labelsStr.length > 0 ? ',' : ''}${key}="${escapeLabelValue(val)}"`; | ||
labelsStr += `${labelsStr.length > 0 ? ',' : ''}${sanitizedLabelName}="${escapeLabelValue(val)}"`; | ||
} | ||
@@ -98,0 +100,0 @@ } |
{ | ||
"name": "@opentelemetry/exporter-prometheus", | ||
"version": "0.18.3-alpha.31+d268bc6a", | ||
"version": "0.18.3-alpha.34+4f9d2b2e", | ||
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", | ||
@@ -61,6 +61,6 @@ "main": "build/src/index.js", | ||
"@opentelemetry/api-metrics": "^0.18.2", | ||
"@opentelemetry/core": "^0.18.3-alpha.31+d268bc6a", | ||
"@opentelemetry/metrics": "^0.18.3-alpha.31+d268bc6a" | ||
"@opentelemetry/core": "^0.18.2", | ||
"@opentelemetry/metrics": "^0.18.2" | ||
}, | ||
"gitHead": "d268bc6a8af633ed6803626096b124a269f7b24b" | ||
"gitHead": "4f9d2b2e794779577b132a522f39026275af6ef5" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
51528
622
+ Added@opentelemetry/core@0.18.2(transitive)
+ Added@opentelemetry/metrics@0.18.2(transitive)
+ Added@opentelemetry/resources@0.18.2(transitive)
- Removed@opentelemetry/core@0.18.3-alpha.31(transitive)
- Removed@opentelemetry/metrics@0.18.3-alpha.31(transitive)
- Removed@opentelemetry/resources@0.18.3-alpha.31(transitive)
Updated@opentelemetry/core@^0.18.2