You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2024/05/18 05:45:08 UTC
(skywalking-booster-ui) branch main updated: fix: statistics span data (#395)
This is an automated email from the ASF dual-hosted git repository.
qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git
The following commit(s) were added to refs/heads/main by this push:
new 88dbee31 fix: statistics span data (#395)
88dbee31 is described below
commit 88dbee311c961831b74ed5ca4c5604479e33c4e1
Author: Starry <zh...@apache.org>
AuthorDate: Sat May 18 13:45:02 2024 +0800
fix: statistics span data (#395)
---
src/views/dashboard/related/trace/components/Statistics.vue | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/dashboard/related/trace/components/Statistics.vue b/src/views/dashboard/related/trace/components/Statistics.vue
index bcb60c5c..f06a091e 100644
--- a/src/views/dashboard/related/trace/components/Statistics.vue
+++ b/src/views/dashboard/related/trace/components/Statistics.vue
@@ -54,11 +54,11 @@ limitations under the License. -->
const result: StatisticsSpan[] = [];
const map = traceTable.changeStatisticsTree(data);
map.forEach((nodes, nodeKey) => {
- const nodeKeyData = nodeKey.split(":");
+ const lastColonIndex = nodeKey.lastIndexOf(":");
result.push(
getSpanGroupData(nodes, {
- endpointName: nodeKeyData[0],
- type: nodeKeyData[1],
+ endpointName: nodeKey.slice(0, lastColonIndex),
+ type: nodeKey.slice(lastColonIndex + 1),
}),
);
});