Showing
1 changed file
with
5 additions
and
4 deletions
@@ -59,11 +59,12 @@ public class PageAnalyzeHandler implements TraceHandler, Serializable { | @@ -59,11 +59,12 @@ public class PageAnalyzeHandler implements TraceHandler, Serializable { | ||
59 | Span span = ite.next(); | 59 | Span span = ite.next(); |
60 | //只取包含pageID的span | 60 | //只取包含pageID的span |
61 | pageId = span.tags().get(FROM_PAGE); | 61 | pageId = span.tags().get(FROM_PAGE); |
62 | - //不区分安卓和IOS | ||
63 | - if(pageId.startsWith("iFP")||pageId.startsWith("aFP")){ | ||
64 | - pageId=pageId.substring(1); | ||
65 | - } | 62 | + |
66 | if (!StringUtils.isEmpty(pageId) && !StringUtils.isEmpty(span.getName())) { | 63 | if (!StringUtils.isEmpty(pageId) && !StringUtils.isEmpty(span.getName())) { |
64 | + //不区分安卓和IOS | ||
65 | + if (pageId.startsWith("iFP") || pageId.startsWith("aFP")) { | ||
66 | + pageId = pageId.substring(1); | ||
67 | + } | ||
67 | spanInfo = new SpanInfo(); | 68 | spanInfo = new SpanInfo(); |
68 | spanInfo.setPageId(pageId); | 69 | spanInfo.setPageId(pageId); |
69 | spanInfo.setName(span.getName()); | 70 | spanInfo.setName(span.getName()); |
-
Please register or login to post a comment