README Examples error
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 76/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Start with the Metrics example in the repository README, which the issue identifies as using spaces in instrument names. Read the OpenTelemetry instrument name syntax linked in the issue, then update the example to use a valid name; done when the README no longer shows an invalid instrument name. The suggestion to make MATLAB throw an error is a separate, broader change.
Written by the indexing model from the issue text.
Description
The Metrics example in the repo's readme shows the creation of a counter as follows
m = opentelemetry.metrics.getMeter("My Meter");
c = m.createCounter("My Counter");
When run in Matlab the following error is received.
c = m.createCounter("My Counter");
[Error] File: *\meter.cc:158 Meter::CreateDoubleCounter - failed. Invalid parameters.My Counter . Measurements won't be recorded.
It appears a no-op counter instead of throwing an error.
Per https://opentelemetry.io/docs/specs/otel/metrics/api/?utm_source=kapa#instrument-name-syntax Metric Instrument Names should not contain spaces. The readme should be updated to reflect that, it may also be worthwhile to have matlab throw an error and not create this no-op counter if a name is invalid.
- Dominant language
- MATLAB
- Stars
- 21
- Forks
- 5
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/OpenTelemetry-MATLAB
-
enhancement performance
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
enhancement performance
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Add support to TRACEPARENT environment variable to buildtool pluginPossibly taken @sameagen-MW claimed this 27 days ago. Open
mathworks/OpenTelemetry-MATLAB#256 · 2 comments · 1 assignee ·
-
enhancement infrastructure
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
documentation
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in mathworks/OpenTelemetry-MATLAB
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
UniprJRC/DSwithMATLAB#246 ·
-
bug priority: p3 size: xs
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
mathworks/MATLAB-Coding-Guidelines#7 · 3 comments ·