Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
add comments on using strrep for name input of synchronous instruments
  • Loading branch information
ricktu-mw committed Oct 6, 2023
1 parent 68a0985 commit e995d79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/metrics/+opentelemetry/+metrics/Meter.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
end
import opentelemetry.common.mustBeScalarString
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);
Expand All @@ -58,6 +60,8 @@

import opentelemetry.common.mustBeScalarString
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);
Expand All @@ -78,6 +82,8 @@

import opentelemetry.common.mustBeScalarString
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);
Expand Down

0 comments on commit e995d79

Please sign in to comment.