Coder Social home page Coder Social logo

Comments (11)

zihotki avatar zihotki commented on June 12, 2024

Another option could be to use Route (api/cities/{id}) instead of a Path (api/cities/2342) and avoid using RegExes if possible. This way it'll be also easier to detect wildcard routes "/api/search/{*searchString}". What do you think?

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

I will write prototype for test. And then I'll think about how best to work with it.

from prom-client-httprequestdurations.

dmeenhuis avatar dmeenhuis commented on June 12, 2024

Any progress with this? I'm trying to get metrics for request durations that also include paths, but it would be a lot more useful if there is a way to normalize ID values.

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

@dmeenhuis I will come back to this issue soon.

Thank you!

from prom-client-httprequestdurations.

dmeenhuis avatar dmeenhuis commented on June 12, 2024

Thanks! I managed to fork this repo and incorporate the changes in the linked PR and for now that seems to work fine, although it contains a minor bug for the integer normalization (it doesn't properly deal with integer values at the end of the path, where there is no trailing slash).

Would love to see an update from your end, thanks for this very useful library so far 👍

from prom-client-httprequestdurations.

zihotki avatar zihotki commented on June 12, 2024

Thanks! I managed to fork this repo and incorporate the changes in the linked PR and for now...

@dmeenhuis Is it me or you didn't push or create a PR? I can't find it in this repo

from prom-client-httprequestdurations.

dmeenhuis avatar dmeenhuis commented on June 12, 2024

It's not you, I didn't actually push the changes yet. Can do that tomorrow if you like.

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

I finished work with this:prom-client-net/prom-client#18

Now, I can come back to this issue

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

Released. 1.1.0

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

Regex examples

from prom-client-httprequestdurations.

phnx47 avatar phnx47 commented on June 12, 2024

If something does not work, then reopen.

from prom-client-httprequestdurations.

Related Issues (7)

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.