diff --git a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl index 4f31b9810..c33ff42c9 100644 --- a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl +++ b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl @@ -10,195 +10,274 @@ <#-- importMenuInfo --> <#macro importMenuInfo menuInfo>
#macro> <#-- importSearchInfo --> <#macro importSearchInfo isLogin> -<#assign text> -${userInfo} -#assign> -<#assign json=text?eval /> + <#assign text> + ${userInfo} + #assign> + <#assign json=text?eval /> #macro> <#-- importUserInfo --> <#macro importUserInfo userInfo> #macro> <#-- dealTraceLog --> <#macro dealTraceLog> -<#if valueList??> -| 服务名 | -类型 | -状态 | -服务/方法 | -主机信息 | -时间轴 | -||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ${logInfo.applicationIdStr!} | -${logInfo.spanTypeName!'UNKNOWN'} | -${logInfo.statusCodeName!'MISSING'} | -- ${logInfo.viewPointIdSub!} - | -${logInfo.address!} | -
-<#assign totalTime=(endTime-beginTime)*1.15>
-
-<#if (logInfo.timeLineList?size=1)>
- <#list logInfo.timeLineList as log>
-
-
-
-
- #list>
-#if>
+ <#if valueList??>
+
+
+
-#if>
+ <#if (logInfo.timeLineList?size=2)>
+ <#if (logInfo.timeLineList[1].startTime) < (logInfo.timeLineList[0].startTime)>
+ <#--服务端开始时间 小于 客户端开始时间(异常,直接显示服务端时间轴)-->
+ <#assign a=(logInfo.timeLineList[1].startTime - beginTime)! />
+ <#assign b=(logInfo.timeLineList[1].cost)! />
+
+
+
+
+ <#elseif (logInfo.timeLineList[1].startTime >= logInfo.timeLineList[0].startTime) && ((logInfo.timeLineList[1].startTime) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost))>
+ <#--服务端开始时间 大于等于 客户端开始时间,并且 小于等于 客户端的结束时间-->
+ <#if (logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost)>
+ <#--服务端结束时间 小于等于 客户端结束时间(客户端时间段包含服务端时间段)-->
+ <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! />
+ <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! />
+ <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! />
+ <#assign d=(logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost - logInfo.timeLineList[1].startTime - logInfo.timeLineList[1].cost)! />
+
+
+
+
+
+
+ <#else>
+ <#--服务端开始时间 大于 客户端开始时间(客户端时间轴与服务端时间轴有一部分重合,重合后的部分算为服务端)-->
+ <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! />
+ <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! />
+ <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! />
+
+
+
+
+
+ #if>
+ <#else>
+ <#--服务端开始时间 大于 客户端结束始时间(客户端一段时间,一段空格,一段服务端时间)-->
+ <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! />
+ <#assign b=(logInfo.timeLineList[0].cost)! />
+ <#assign c=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! />
+ <#assign d=(logInfo.timeLineList[1].cost)! />
+
+
+
+
+
+
+ #if>
+ #if>
+
+
-+ ${traceId!} + 调度入口IP:${(valueList[0].address)!},开始时间:${beginTime?number_to_datetime},${(valueList?size)!}条调用记录,消耗总时长:${(endTime - beginTime)!'0'} + ms。显示原文 ++
+
-
|
+ #list>
+