diff --git a/exporters/prometheus/src/exporter_utils.cc b/exporters/prometheus/src/exporter_utils.cc index 55c4017876..62e3997825 100644 --- a/exporters/prometheus/src/exporter_utils.cc +++ b/exporters/prometheus/src/exporter_utils.cc @@ -334,7 +334,7 @@ void PrometheusExporterUtils::SetTarget(const sdk::metrics::ResourceMetrics &dat continue; } - AddPrometheusLabel(SanitizeNames(label.first), AttributeValueToString(label.second), + AddPrometheusLabel(SanitizeName(label.first), AttributeValueToString(label.second), &metric.label); }