Skip to content

Commit

Permalink
back out a change to replace spaces in instrument names with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpo committed Nov 9, 2023
1 parent 9f9fbc7 commit 94b9293
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/metrics/+opentelemetry/+metrics/Meter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 94b9293

Please sign in to comment.