Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaladoc: Update max name length of a metric instrument #307

Closed
wants to merge 1 commit into from

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Sep 9, 2023

Starting from 1.30.0, the max length of a metric instrument can be 255 ASCII characters.

https://github.com/open-telemetry/opentelemetry-java/releases/tag/v1.30.0

@iRevive iRevive changed the title Update max name length of a metric instrument Scaladoc: Update max name length of a metric instrument Sep 9, 2023
Comment on lines 31 to 34
* @param unit
* the measurement unit. Must be 63 or fewer ASCII characters.
* the measurement unit. Must be 255 or fewer ASCII characters.
*/
def withUnit(unit: String): Self
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm confused. The spec change is in open-telemetry/opentelemetry-specification#3648 and it is about the instrument name, not the unit, which is documented below.

Copy link
Contributor Author

@iRevive iRevive Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two pairs of eyes are better than one!

Good catch. I guess we can close the PR.

@iRevive iRevive closed this Sep 9, 2023
@iRevive iRevive deleted the update-metrics-doc branch September 9, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants