Showing
1 changed file
with
11 additions
and
10 deletions
@@ -284,17 +284,18 @@ public class TraceAnalyzeHandler implements TraceHandler, Serializable { | @@ -284,17 +284,18 @@ public class TraceAnalyzeHandler implements TraceHandler, Serializable { | ||
284 | 284 | ||
285 | String ip = ""; | 285 | String ip = ""; |
286 | //只有root和resttemplate才会生成ip | 286 | //只有root和resttemplate才会生成ip |
287 | - if(spanInfo.getTraceid().equals(spanInfo.getSpanid())){ | ||
288 | - ip = spanInfo.getIp(); | ||
289 | - }else{ | ||
290 | - if(StringUtils.isNotBlank(spanInfo.getHttpHost())){ | ||
291 | - ip = spanInfo.getHttpHost(); | ||
292 | - } | ||
293 | - } | 287 | +// if(spanInfo.getTraceid().equals(spanInfo.getSpanid())){ |
288 | +// ip = spanInfo.getIp(); | ||
289 | +// }else{ | ||
290 | +// if(StringUtils.isNotBlank(spanInfo.getHttpHost())){ | ||
291 | +// ip = spanInfo.getHttpHost(); | ||
292 | +// } | ||
293 | +// } | ||
294 | + ip = spanInfo.getIp(); | ||
294 | 295 | ||
295 | - if(StringUtils.isBlank(ip)){ | ||
296 | - continue; | ||
297 | - } | 296 | +// if(StringUtils.isBlank(ip)){ |
297 | +// continue; | ||
298 | +// } | ||
298 | 299 | ||
299 | SpanIpResult spanIpResult = new SpanIpResult(); | 300 | SpanIpResult spanIpResult = new SpanIpResult(); |
300 | String spanName = spanInfo.getName(); | 301 | String spanName = spanInfo.getName(); |
-
Please register or login to post a comment