Skip to content

Commit 6d492c9

Browse files
authored
Merge pull request #55 from mathworks/metrics_cleanup
back out a change to replace spaces in instrument names with underscore
2 parents 123f9f9 + 94b9293 commit 6d492c9

File tree

1 file changed

+0
-3
lines changed
  • api/metrics/+opentelemetry/+metrics

1 file changed

+0
-3
lines changed

api/metrics/+opentelemetry/+metrics/Meter.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
ctname = mustBeScalarString(ctname);
4141
% cpp-opentelemetry end does not allow string input with spaces,
4242
% replace any spaces with underscores as a temporary fix
43-
ctname = strrep(ctname, ' ', '_');
4443
ctdescription = mustBeScalarString(ctdescription);
4544
ctunit = mustBeScalarString(ctunit);
4645
id = obj.Proxy.createCounter(ctname, ctdescription, ctunit);
@@ -62,7 +61,6 @@
6261
ctname = mustBeScalarString(ctname);
6362
% cpp-opentelemetry end does not allow string input with spaces,
6463
% replace any spaces with underscores as a temporary fix
65-
ctname = strrep(ctname, ' ', '_');
6664
ctdescription = mustBeScalarString(ctdescription);
6765
ctunit = mustBeScalarString(ctunit);
6866
id = obj.Proxy.createUpDownCounter(ctname, ctdescription, ctunit);
@@ -84,7 +82,6 @@
8482
hiname = mustBeScalarString(hiname);
8583
% cpp-opentelemetry end does not allow string input with spaces,
8684
% replace any spaces with underscores as a temporary fix
87-
hiname = strrep(hiname, ' ', '_');
8885
hidescription = mustBeScalarString(hidescription);
8986
hiunit = mustBeScalarString(hiunit);
9087
id = obj.Proxy.createHistogram(hiname, hidescription, hiunit);

0 commit comments

Comments
 (0)