From 765eb99d1ee4891a98903b47cad0f503a9b7aea4 Mon Sep 17 00:00:00 2001 From: owent Date: Wed, 27 Sep 2023 16:43:31 +0800 Subject: [PATCH] Merge SanitizeName changes --- exporters/prometheus/src/exporter_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }