Skip to content

fix(metrics): Replace invalid tag values with an empty string instead of _ #2773

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

markushi
Copy link
Member

@markushi markushi commented Feb 27, 2024

According to our spec invalid tag values should be replaced with no string.

Tag Values: regex [^\w\d_:/@\.{}\[\]$-]+ with no replacement character.

I cross checked with PHP and JS: both of them also use no replacement character.

Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

👍🏻 Thanks for the fix!

@markushi markushi merged commit f874407 into master Feb 28, 2024
@markushi markushi deleted the fix/metrics-tag-value-normalization branch February 28, 2024 09:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants