1. 统一包名修改
This commit is contained in:
@@ -8,7 +8,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
*
|
||||
* @author 麻薯
|
||||
*/
|
||||
@ConfigurationProperties("cloud.tracer")
|
||||
@ConfigurationProperties("zt.tracer")
|
||||
@Data
|
||||
public class TracerProperties {
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ import org.springframework.context.annotation.Configuration;
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnClass({MeterRegistryCustomizer.class})
|
||||
@ConditionalOnProperty(prefix = "cloud.metrics", value = "enable", matchIfMissing = true) // 允许使用 cloud.metrics.enable=false 禁用 Metrics
|
||||
public class CloudMetricsAutoConfiguration {
|
||||
@ConditionalOnProperty(prefix = "zt.metrics", value = "enable", matchIfMissing = true) // 允许使用 zt.metrics.enable=false 禁用 Metrics
|
||||
public class ZtMetricsAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public MeterRegistryCustomizer<MeterRegistry> metricsCommonTags(
|
||||
@@ -18,8 +18,8 @@ import org.springframework.context.annotation.Bean;
|
||||
@AutoConfiguration
|
||||
@ConditionalOnClass(value = {BizTraceAspect.class}, name = "jakarta.servlet.Filter")
|
||||
@EnableConfigurationProperties(TracerProperties.class)
|
||||
@ConditionalOnProperty(prefix = "cloud.tracer", value = "enable", matchIfMissing = true)
|
||||
public class CloudTracerAutoConfiguration {
|
||||
@ConditionalOnProperty(prefix = "zt.tracer", value = "enable", matchIfMissing = true)
|
||||
public class ZtTracerAutoConfiguration {
|
||||
|
||||
// TODO @芋艿:重要。目前 opentracing 版本存在冲突,要么保证 skywalking,要么保证阿里云短信 sdk
|
||||
// @Bean
|
||||
@@ -1,2 +1,2 @@
|
||||
com.zt.plat.framework.tracer.config.CloudTracerAutoConfiguration
|
||||
com.zt.plat.framework.tracer.config.CloudMetricsAutoConfiguration
|
||||
com.zt.plat.framework.tracer.config.ZtTracerAutoConfiguration
|
||||
com.zt.plat.framework.tracer.config.ZtMetricsAutoConfiguration
|
||||
|
||||
@@ -1 +1 @@
|
||||
<https://www.iocoder.cn/Spring-Boot/Admin/?cloud>
|
||||
<https://www.iocoder.cn/Spring-Boot/Admin/?zt>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<https://www.iocoder.cn/Spring-Boot/Actuator/?cloud>
|
||||
<https://www.iocoder.cn/Spring-Boot/Actuator/?zt>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<http://www.iocoder.cn/Spring-Boot/SkyWalking/?cloud>
|
||||
<http://www.iocoder.cn/Spring-Boot/SkyWalking/?zt>
|
||||
|
||||
Reference in New Issue
Block a user