-
Notifications
You must be signed in to change notification settings - Fork 25
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
Feature request : utility tag sanitization method #16
Comments
This would be super simple. Just need to provide a function which does a replace on the InvalidChars regex. Probably all of that |
I guess I forgot that there already is a I'll probably keep that the way it is, and also make the invalid chars regex public so that people can write their own sanitize function if they want different functionality. |
I've made this change. The validation class is now named I also added a global tag value sanitize/normalize function option which you could use if you want the ability to apply a function to tag values across all metrics. See BosunOptions.cs. |
Awesome; thanks
|
Not all tag values are valid; the library includes features to check for invalid tags, but it would be nice if it exposed something on the public API to sanitize tag values (perhaps simply removing all illegal characters)
The text was updated successfully, but these errors were encountered: