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

fix(metrics): Disallow empty metric names, require alphabetic start #952

Merged
merged 2 commits into from
Mar 18, 2021

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Mar 18, 2021

Metric names in the protocol must consist of at least one character.

In addition, require a letter as first character to prevent purely numeric / special character names.

@jjbayer jjbayer requested a review from a team March 18, 2021 07:21
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Can you please also update the doc strings, particularly on Metric::name to reflect this?

@jjbayer jjbayer merged commit 4b615b9 into master Mar 18, 2021
@jjbayer jjbayer deleted the fix/metrics-empty-names branch March 18, 2021 07:46
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.

None yet

2 participants