cocodroid commented on code in PR #2034:
URL:
https://github.com/apache/shardingsphere-elasticjob/pull/2034#discussion_r1032763422
##########
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:
> 现在使用 3.0.2 会由于这里初始化一个 DataSource 影响到了应用启动,因为没设置主要数据源等之类
You can provide sample code configuration? I don't think this is a problem.
--
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]