-
Notifications
You must be signed in to change notification settings - Fork 268
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 server version middleware to serve-testing #2006
Add server version middleware to serve-testing #2006
Conversation
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.
Can you reuse the defaults here instead? That way we won't have drifting in the future. It also uses the middleware framework, which is more robust when it comes to dependencies between middlewares.
|
5f0ca8d
to
4ef7f38
Compare
Updated to use the middleware system as we discussed |
enableRequestLog bool | ||
enableResponseLog bool | ||
disableGRPCHistogram bool | ||
Logger zerolog.Logger `debugmap:"hidden"` |
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.
Why are all of these exported now? I don't see that being used anywhere.
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.
Figured since the With* methods are now exported, its a public config
Fixes #2003