|
@ -18,6 +18,8 @@ import org.springframework.data.annotation.Id;
|
|
time:"" 时间
|
|
time:"" 时间
|
|
,logType:2 日志类型
|
|
,logType:2 日志类型
|
|
,caller:"" 调用者
|
|
,caller:"" 调用者
|
|
|
|
,traceId: "" 主流程id
|
|
|
|
,spanId:"" 模块id
|
|
,data:{
|
|
,data:{
|
|
,businessType:"" 业务类型
|
|
,businessType:"" 业务类型
|
|
,patient:"" 居民
|
|
,patient:"" 居民
|
|
@ -30,6 +32,8 @@ import org.springframework.data.annotation.Id;
|
|
time:"" 时间
|
|
time:"" 时间
|
|
,logType:1 日志类型
|
|
,logType:1 日志类型
|
|
,caller:"" 调用者
|
|
,caller:"" 调用者
|
|
|
|
,traceId: "" 主流程id
|
|
|
|
,spanId:"" 模块id
|
|
,data:{
|
|
,data:{
|
|
responseTime:"" 响应时间
|
|
responseTime:"" 响应时间
|
|
,url:"" 接口URL
|
|
,url:"" 接口URL
|
|
@ -40,6 +44,8 @@ import org.springframework.data.annotation.Id;
|
|
public class DataModel {
|
|
public class DataModel {
|
|
@Id
|
|
@Id
|
|
protected String id;
|
|
protected String id;
|
|
|
|
protected String traceId;//主流程ID
|
|
|
|
protected String spanId;//模块Id
|
|
protected String time;//时间
|
|
protected String time;//时间
|
|
protected String caller; //调用者
|
|
protected String caller; //调用者
|
|
protected String logType;//日志类型 1接口 2业务
|
|
protected String logType;//日志类型 1接口 2业务
|
|
@ -76,4 +82,20 @@ public class DataModel {
|
|
public void setCaller(String caller) {
|
|
public void setCaller(String caller) {
|
|
this.caller = caller;
|
|
this.caller = caller;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getTraceId() {
|
|
|
|
return traceId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTraceId(String traceId) {
|
|
|
|
this.traceId = traceId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getSpanId() {
|
|
|
|
return spanId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSpanId(String spanId) {
|
|
|
|
this.spanId = spanId;
|
|
|
|
}
|
|
}
|
|
}
|