增加分布式日志链路追踪

This commit is contained in:
zlt
2019-08-14 15:49:26 +08:00
parent 2cd4cce967
commit 09476d9827
14 changed files with 166 additions and 6 deletions
@@ -0,0 +1,15 @@
package com.central.log.config;
import com.central.log.properties.TraceProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
/**
* 日志自动配置
*
* @author zlt
* @date 2019/8/13
*/
@EnableConfigurationProperties(TraceProperties.class)
public class LogAutoConfigure {
}
@@ -0,0 +1,23 @@
package com.central.log.properties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
/**
* 日志链路追踪配置
*
* @author zlt
* @date 2019/8/13
*/
@Setter
@Getter
@ConfigurationProperties(prefix = "zlt.trace")
@RefreshScope
public class TraceProperties {
/**
* 是否开启日志链路追踪
*/
private Boolean enable = false;
}