-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Migration Guide 2.3
Michał Szynkiewicz edited this page Aug 19, 2021
·
14 revisions
Global gRPC server interceptors have to be annotated with @io.quarkus.grpc.GlobalInterceptor
since 2.3.
Prior to Quarkus 2.3, all the CDI beans implementing io.grpc.ServerInterceptor
where considered global interceptors, i.e. applied to all gRPC services.
Since 2.3, it is possible to make a service-specific interceptor, by adding @io.quarkus.grpc.RegisterInterceptor(MyInterceptor.class)
on a gRPC service implementation. To easily distinguish between per-service interceptors and global ones, the aforementioned @GlobalInterceptor
annotation has been introduced.