puzpuzpuz / cls-rtracer

Request Tracer - CLS-based request id generation for Express, Fastify, Koa and Hapi, batteries included
MIT License
311 stars 24 forks source link

id generation #57

Closed ghost closed 2 years ago

ghost commented 2 years ago

Discovered this lib yesterday and it works perfectly for my needs, the main thing I have an issue with is that it is using uuid v1.Could you please upgrade, or allow us to initialize it with our own generation function?

ghost commented 2 years ago

Oh, I have just realised it is possible to do this already by passing a requestIdFactory option :)

puzpuzpuz commented 2 years ago

Oh, I have just realised it is possible to do this already by passing a requestIdFactory option :)

Yes, that's the case.