You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toString() method for OperationalMetric outputs the name and description of the metric. I'm pretty sure the quoted line above should really say PREFIX + metricName.name().toLowerCase(Locale.ROOT) + ".count".
The Otel SDKMeter JavaDoc related to the failing validation says:
Instrument names MUST conform to the following syntax.
They are not null or empty strings.
They are case-insensitive, ASCII strings.
The first character must be an alphabetic character.
Subsequent characters must belong to the alphanumeric characters, '_', '.', '/', and '-'.
They can have a maximum length of 255 characters.
The name+description strings produced by toString() contain space characters and parentheses, which are not valid according to those rules.
What is the expected behavior?
No error should be thrown
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered:
What is the bug?
We are seeing error when initializing the operational metrics
How can one reproduce the bug?
See above, It is related to https://github.com/opensearch-project/query-insights/blame/main/src/main/java/org/opensearch/plugin/insights/core/metrics/OperationalMetricsCounter.java#L90.
The toString() method for OperationalMetric outputs the name and description of the metric. I'm pretty sure the quoted line above should really say PREFIX + metricName.name().toLowerCase(Locale.ROOT) + ".count".
The Otel SDKMeter JavaDoc related to the failing validation says:
The name+description strings produced by toString() contain space characters and parentheses, which are not valid according to those rules.
What is the expected behavior?
No error should be thrown
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: