Skip to content

Commit dc4df4c

Browse files
authored
[AST-494] default enable request-id distributed logging interceptor for all grpc services (#87)
1 parent 42cb1cf commit dc4df4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

grpc-server-utils/src/main/java/org/hypertrace/core/grpcutils/server/InterceptorUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ public class InterceptorUtil {
1515
*/
1616
public static ServerServiceDefinition wrapInterceptors(BindableService bindableService) {
1717
return ServerInterceptors.intercept(
18-
bindableService, new RequestContextServerInterceptor(), new ThrowableResponseInterceptor());
18+
bindableService,
19+
new RequestContextLoggingServerInterceptor(),
20+
new ThrowableResponseInterceptor());
1921
}
2022

2123
public static ServerServiceDefinition wrapInterceptors(
2224
ServerServiceDefinition serviceDefinition) {
2325
return ServerInterceptors.intercept(
2426
serviceDefinition,
25-
new RequestContextServerInterceptor(),
27+
new RequestContextLoggingServerInterceptor(),
2628
new ThrowableResponseInterceptor());
2729
}
2830
}

0 commit comments

Comments
 (0)