From abaa693a56617c12659b2b8da6406b0f6ddb7ff6 Mon Sep 17 00:00:00 2001
From: buildmaster
@Configuration
@EnableAutoConfiguration
@EnableAsync
+// add the infrastructure role to ensure that the bean gets auto-proxied
+@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
static class CustomExecutorConfig extends AsyncConfigurerSupport {
@Autowired
@@ -164,7 +166,9 @@ The following example shows how to set up such a custom Ex
return new LazyTraceExecutor(this.beanFactory, executor);
}
-}Features from this section can be disabled by setting the spring.sleuth.messaging.enabled property with value equal to false.
Spring Cloud Sleuth integrates with Spring Integration. +}
![]() | Tip |
|---|---|
To ensure that your configuration gets post processed, remember
+to add the |
Features from this section can be disabled by setting the spring.sleuth.messaging.enabled property with value equal to false.
Spring Cloud Sleuth integrates with Spring Integration.
It creates spans for publish and subscribe events.
To disable Spring Integration instrumentation, set spring.sleuth.integration.enabled to false.
You can provide the spring.sleuth.integration.patterns pattern to explicitly provide the names of channels that you want to include for tracing.
By default, all channels but hystrixStreamOutput channel are included.
![]() | Important | |||||
|---|---|---|---|---|---|---|
When using the @Configuration
@EnableAutoConfiguration
@EnableAsync
+// add the infrastructure role to ensure that the bean gets auto-proxied
+@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
static class CustomExecutorConfig extends AsyncConfigurerSupport {
@Autowired
@@ -950,7 +952,9 @@ The following example shows how to set up such a custom Features from this section can be disabled by setting the Spring Cloud Sleuth integrates with Spring Integration. +}
Features from this section can be disabled by setting the Spring Cloud Sleuth integrates with Spring Integration.
It creates spans for publish and subscribe events.
To disable Spring Integration instrumentation, set You can provide the
|