You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a spring boot application that uses ServerInterceptors The problem I found is that if the @order annotation is added to the @bean definition it won't have any effect.
@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
@GRpcGlobalInterceptor
public io.grpc.ServerInterceptor globalServerMicrometerInterceptor(
final ObservationRegistry observationRegistry) {
// for metric collection and distributed tracing
return new ObservationGrpcServerInterceptor(observationRegistry);
}
And then another one
@Bean
@GRpcGlobalInterceptor
public io.grpc.ServerInterceptor globalServerInterceptor(...) {
...
}
But the second one is not running later than the first one. Can someone let me know how can I enforce this?
jvmlet
changed the title
Allow order Interceptors by using @Order annotation in the @Bean definition
Buggy interceptors @Order annotation processing
Sep 27, 2023
@jvmlet We are using spring-boot 3.0.11. Fix is made in 5.1.5. Do I have to upgrade spring-boot also to 3.1.1 (as per the version matrix) or I can use 5.1.5 with my current spring-boot 3.0.11?
We have a spring boot application that uses ServerInterceptors The problem I found is that if the @order annotation is added to the @bean definition it won't have any effect.
And then another one
But the second one is not running later than the first one. Can someone let me know how can I enforce this?
The text was updated successfully, but these errors were encountered: