Replies: 2 comments 3 replies
-
We have actually created a PoC for logging but we haven't still ported it back to the base-stack, my co-founder has worked on this part so i'll let him @thomasfr provide some feedback here |
Beta Was this translation helpful? Give feedback.
-
Hi @aarbi
May i ask you, what you mean with "wanted the restful api endpoints as much as possible decoupled from http server" and why? As Alem has already mentioned, if you are using those API endpoints exclusively from the same RR7 app, I recommend keeping the API endpoints within the RR7 app. This approach provides better type hints and enhances the developer experience. Additionally, as you noted, I suggest adding a logger instance or In the |
Beta Was this translation helpful? Give feedback.
-
I recently built an app on top of rr7, I had to add some Restful API endpoint, so I added them as rr routes (not added to express) since I want to the implementation to be as much as possible decoupled from http server.
Now with that in mind, I want your thoughts about the best way integrate logging that serves most of the use cases if possible.
Each request would have a spanId or requestId header and would be great if we can append it to the logs output throughout logging emitted while handling a request. I faced some challenges before when tried to use AppContext to pass a logger instance around, so I am just bringing this up here because I would love to see a robust logging toolings integrated into this great stack.
I can help implement it but I will need some thoughts about the best way to do it.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions