GithubHelp home page GithubHelp logo

Comments (4)

bretcope avatar bretcope commented on June 19, 2024

This would be super simple. Just need to provide a function which does a replace on the InvalidChars regex. Probably all of that Validation class could be moved and made public.

from stackexchange.metrics.

bretcope avatar bretcope commented on June 19, 2024

I guess I forgot that there already is a NameTransformers.Sanitize() which converts all spans of invalid chars to a single underscore (or simply removes it if it's at the beginning or end of the string).

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.

from stackexchange.metrics.

bretcope avatar bretcope commented on June 19, 2024

I've made this change. The validation class is now named BosunValidation, and is public under the top namespace.

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.

from stackexchange.metrics.

mgravell avatar mgravell commented on June 19, 2024

Awesome; thanks
On 21 Apr 2015 2:28 am, "Bret Copeland" [email protected] wrote:

I've made this change. The validation class is now named BosunValidation,
and is public under the top namespace.

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
https://github.com/bretcope/BosunReporter.NET/blob/master/BosunReporter/BosunOptions.cs#L58-L64
.


Reply to this email directly or view it on GitHub
#16 (comment)
.

from stackexchange.metrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.