-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add request id to important http handlers #3376
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am NOT completely against this, but wouldn't it be a lot cleaner to add the middleware in the same way how all the other middlewares are handled in pkg/rhttp/rhttp.go? Instead of touching every single service individually?
1dfc6a7
to
c044d0c
Compare
@@ -191,8 +192,11 @@ func useMiddlewares(r *chi.Mux, sopts *Options, svc global.Service, tp trace.Tra | |||
// ctx | |||
cm := appctx.New(sopts.Logger, tp) | |||
|
|||
// request-id | |||
rm := middleware.RequestID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhafer Could not find another way. Any ideas? the ocdav service starts differently
Add request-id to logs in