Authored by wangning

update

... ... @@ -4,5 +4,5 @@ package com.yoho.trace.anaylzer.model;
* Created by wangning on 2017/11/30.
*/
public enum SpanType {
RESTTEMPLATE,REDIS,MYSQL,OTHER;
RESTTEMPLATE,REDIS,MYSQL,OTHER,HTTP;
}
... ...
... ... @@ -107,6 +107,8 @@ public class TraceAnalyzeHandler implements TraceHandler, Serializable {
spanInfo.setSpanType(SpanType.MYSQL);
}else if(StringUtils.isNoneBlank(httpUrl)){
spanInfo.setSpanType(SpanType.RESTTEMPLATE);
}else if(StringUtils.equals(spanInfo.getTraceid(),spanInfo.getSpanid())){
spanInfo.setSpanType(SpanType.HTTP);
}else{
spanInfo.setSpanType(SpanType.OTHER);
}
... ...