CherishCai commented on code in PR #2034:
URL: 
https://github.com/apache/shardingsphere-elasticjob/pull/2034#discussion_r1005173346


##########
elasticjob-lite/elasticjob-lite-spring/elasticjob-lite-spring-boot-starter/src/main/java/org/apache/shardingsphere/elasticjob/lite/spring/boot/tracing/ElasticJobTracingConfiguration.java:
##########
@@ -30,17 +34,40 @@
  */
 @EnableConfigurationProperties(TracingProperties.class)
 public class ElasticJobTracingConfiguration {
-    
+
+    /**
+     * Create a bean of tracing DataSource.
+     *
+     * @param tracingProperties tracing Properties
+     * @return tracing DataSource
+     */
+    @Bean("tracingDataSource")
+    public DataSource tracingDataSource(final TracingProperties 
tracingProperties) {

Review Comment:
   不用 tracing 的暂时如此处理
   ```java
   public class RemoveElasticJobTracingBeanFactoryPostProcessor implements 
BeanDefinitionRegistryPostProcessor {
   
        public static final String ELASTIC_JOB_TRACING_CONFIGURATION_NAME
                = 
"org.apache.shardingsphere.elasticjob.lite.spring.boot.tracing.ElasticJobTracingConfiguration";
   
        @Override
        public void postProcessBeanDefinitionRegistry(@NonNull 
BeanDefinitionRegistry registry) throws BeansException {
   
                if 
(registry.containsBeanDefinition(ELASTIC_JOB_TRACING_CONFIGURATION_NAME)) {
                        
registry.removeBeanDefinition(ELASTIC_JOB_TRACING_CONFIGURATION_NAME);
                }
        }
   
        @Override
        public void postProcessBeanFactory(@NonNull 
ConfigurableListableBeanFactory beanFactory) throws BeansException {
                // NOOP
        }
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to