From 94b9293dc07130e6805a95b92aae92344c58de36 Mon Sep 17 00:00:00 2001 From: duncanpo Date: Thu, 9 Nov 2023 16:57:08 -0500 Subject: [PATCH] back out a change to replace spaces in instrument names with underscore --- api/metrics/+opentelemetry/+metrics/Meter.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/metrics/+opentelemetry/+metrics/Meter.m b/api/metrics/+opentelemetry/+metrics/Meter.m index b399bfd..45c2486 100644 --- a/api/metrics/+opentelemetry/+metrics/Meter.m +++ b/api/metrics/+opentelemetry/+metrics/Meter.m @@ -40,7 +40,6 @@ ctname = mustBeScalarString(ctname); % cpp-opentelemetry end does not allow string input with spaces, % replace any spaces with underscores as a temporary fix - ctname = strrep(ctname, ' ', '_'); ctdescription = mustBeScalarString(ctdescription); ctunit = mustBeScalarString(ctunit); id = obj.Proxy.createCounter(ctname, ctdescription, ctunit); @@ -62,7 +61,6 @@ ctname = mustBeScalarString(ctname); % cpp-opentelemetry end does not allow string input with spaces, % replace any spaces with underscores as a temporary fix - ctname = strrep(ctname, ' ', '_'); ctdescription = mustBeScalarString(ctdescription); ctunit = mustBeScalarString(ctunit); id = obj.Proxy.createUpDownCounter(ctname, ctdescription, ctunit); @@ -84,7 +82,6 @@ hiname = mustBeScalarString(hiname); % cpp-opentelemetry end does not allow string input with spaces, % replace any spaces with underscores as a temporary fix - hiname = strrep(hiname, ' ', '_'); hidescription = mustBeScalarString(hidescription); hiunit = mustBeScalarString(hiunit); id = obj.Proxy.createHistogram(hiname, hidescription, hiunit);