-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
gRPC: per-client interceptors #21648
Comments
/cc @cescoffier |
Hm, so currently any bean that implements Anyway, I think that we can reuse the |
Exactly, I found out that when implementing the metrics support. |
- resolves quarkusio#21648 - make the RegisterInterceptor annotaion repeatable - refactor server interceptors
- resolves quarkusio#21648 - make the RegisterInterceptor annotaion repeatable - refactor server interceptors
- resolves quarkusio#21648 - make the RegisterInterceptor annotaion repeatable - refactor server interceptors
- resolves quarkusio#21648 - make the RegisterInterceptor annotaion repeatable - refactor server interceptors Co-authored-by: Michał Szynkiewicz <[email protected]> Co-authored-by: Clement Escoffier <[email protected]>
- resolves quarkusio#21648 - make the RegisterInterceptor annotaion repeatable - refactor server interceptors Co-authored-by: Michał Szynkiewicz <[email protected]> Co-authored-by: Clement Escoffier <[email protected]>
Hi, I am trying to register client interceptor for a specific service. My bean graph is something like: FooAuthClientInterceptor {
}
BeanA {
@GrpcClient("foo")
FooBlockingStub fooGrpcClient;
@GrpcClient("bar")
BarBlockingSub barGrpcClient;
}
BeanB {
@GrpcClient("foo")
FooBlockingStub grpcClient;
}
BeanC {
@GrpcClient("foo")
FooBlockingStub grpcClient;
} Adding @RegisterFor("foo")
FooAuthClientInterceptor {
} Alternatively if interceptor list could be set in |
You can register a global interceptor. See https://quarkus.io/guides/grpc-service-consumption#client-interceptors |
Yes, but isn't global interceptor will attach to |
Yes it will. |
Description
For gRPC services we now have
@GlobalInterceptor
s and interceptors registered for specific servies.We likely need something similar for clients, so that a user can attach an interceptor to a specific client
CC @cescoffier @mkouba
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: