Skip to content

Commit

Permalink
Spring Integration interceptor ordering (open-telemetry#4602)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored and RashmiRam committed May 23, 2022
1 parent 1b3039e commit a2f1592
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit a2f1592

Please sign in to comment.