Skip to content
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

Spring Integration interceptor ordering #4602

Merged
merged 1 commit into from
Nov 8, 2021
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 @@ -56,6 +56,11 @@ public static void onEnter(@Advice.Argument(0) ConfigurableListableBeanFactory b
genericBeanDefinition(GlobalChannelInterceptorWrapper.class)
.addConstructorArgValue(SpringIntegrationSingletons.interceptor())
.addPropertyValue("patterns", SpringIntegrationSingletons.patterns())
// it is important for the tracing interceptor to run first for CONSUMER spans so
// that they capture the whole operation and also so that users can write their own
// interceptors to enrich the CONSUMER span (similar to writing a servlet filter to
// enrich the SERVER span)
.addPropertyValue("order", Integer.MIN_VALUE)
.getBeanDefinition();

((BeanDefinitionRegistry) beanFactory)
Expand Down