Code Monkey home page Code Monkey logo

Comments (9)

tellnes avatar tellnes commented on July 26, 2024

Cool.

As far as I can see is the difference your duration property. I will probably implement that myself since it is a good ide.

Also, you have a much better readme. I'll accept pull requests.

from bunyan-middleware.

tellnes avatar tellnes commented on July 26, 2024

I pushed a few commits. Some of them is thing inspired by your version while others is thing I have thought about some time.

from bunyan-middleware.

vvo avatar vvo commented on July 26, 2024

nice, I think our two modules are too different now. thanks. I kept your license

from bunyan-middleware.

tellnes avatar tellnes commented on July 26, 2024

What was your reason to switch to uuid v4 instead of v1?

from bunyan-middleware.

vvo avatar vvo commented on July 26, 2024

No particular reason, I always use v4 uuids. Do you have any reason to use v1 or v4?

from bunyan-middleware.

tellnes avatar tellnes commented on July 26, 2024

No. That is why I did ask so you maybe would give me one.

from bunyan-middleware.

tellnes avatar tellnes commented on July 26, 2024

After reading Which UUID version to use? on stackoverflow I think I will change it to v4. The reason is that we are reading the ID from the incoming headers and that make it easy for someone to manipulate the logs.

I think it maybe should be configurable and disabled by default. But it is a nice feature if you are using a proxy server which gennerates request ids.

What do you think?

from bunyan-middleware.

tellnes avatar tellnes commented on July 26, 2024

Also, I see that you have done some work on npm uuid and switched to that. Is npm node-uuid dead?

from bunyan-middleware.

vvo avatar vvo commented on July 26, 2024

In a real environment the uuid would maybe be generated by the highest server in your stack (nginx) and then forwarded. But nginx should not read the uuid from the client. Thus you can't get hacked on this.

As for the feature I don't know. I tried to have the smallest feature list.

node-uuid is not dead it's just that uuid is the first one you find on npmjs by default. And uuid seems more uptodate.

I only modified uuid to be more easy to use on browser.

from bunyan-middleware.

Related Issues (12)

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.