Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ public class InterceptorUtil {
*/
public static ServerServiceDefinition wrapInterceptors(BindableService bindableService) {
return ServerInterceptors.intercept(
bindableService, new RequestContextServerInterceptor(), new ThrowableResponseInterceptor());
bindableService,
new RequestContextLoggingServerInterceptor(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this log the entire request context which i believe has the jwt too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wont log yet. We are just putting key value pairs in MDC context here. logging params will be controlled by log-config.yaml file of individual grpc service. like for scan-manager service we are just logging request-id key

new ThrowableResponseInterceptor());
}

public static ServerServiceDefinition wrapInterceptors(
ServerServiceDefinition serviceDefinition) {
return ServerInterceptors.intercept(
serviceDefinition,
new RequestContextServerInterceptor(),
new RequestContextLoggingServerInterceptor(),
new ThrowableResponseInterceptor());
}
}
Loading