puzpuzpuz / cls-rtracer

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

Restify Plugin Support #64

Open 7-happy opened 2 years ago

7-happy commented 2 years ago

good job !

my question is tha i am using restify (another nodejs framework),just wanna to know which plugin can i use ? thx!

puzpuzpuz commented 2 years ago

Hi,

Restify's middlewares look very similar to Express' one, yet there might be a caveat. Each middleware is required to return the next() result which is not something cls-tracer's Express middleware does. But you could try it and, if it appears to be non-compatible, contribute Restify support.

7-happy commented 2 years ago

Hi,

Restify's middlewares look very similar to Express' one, yet there might be a caveat. Each middleware is required to return the next() result which is not something cls-tracer's Express middleware does. But you could try it and, if it appears to be non-compatible, contribute Restify support.

thx for your reply, i will have a try~