mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-08-02 02:51:55 +00:00
fix tracing profiling
This commit is contained in:
parent
72d7d65daa
commit
d31042f8fe
@ -69,6 +69,7 @@ limitations under the License. -->
|
||||
type: { type: String, default: TraceGraphType.LIST },
|
||||
headerType: { type: String, default: "" },
|
||||
});
|
||||
const emits = defineEmits(["select"]);
|
||||
const appStore = useAppStoreWithOut();
|
||||
const loading = ref<boolean>(false);
|
||||
const showDetail = ref<boolean>(false);
|
||||
@ -130,6 +131,7 @@ limitations under the License. -->
|
||||
refParentSpans.value = [];
|
||||
if (props.type === TraceGraphType.TABLE) {
|
||||
currentSpan.value = i;
|
||||
emits("select", i);
|
||||
} else {
|
||||
currentSpan.value = i.data;
|
||||
}
|
||||
|
@ -12,7 +12,13 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License. -->
|
||||
<template>
|
||||
<div class="trace-table-charts">
|
||||
<Graph :data="data" :traceId="traceId" :type="TraceGraphType.TABLE" :headerType="headerType" />
|
||||
<Graph
|
||||
:data="data"
|
||||
:traceId="traceId"
|
||||
:type="TraceGraphType.TABLE"
|
||||
:headerType="headerType"
|
||||
@select="getSelectedSpan"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
@ -26,6 +32,11 @@ limitations under the License. -->
|
||||
traceId: { type: String, default: "" },
|
||||
headerType: { type: String, default: "" },
|
||||
});
|
||||
const emits = defineEmits(["select"]);
|
||||
|
||||
function getSelectedSpan(span: Span) {
|
||||
emits("select", span);
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.trace-table-charts {
|
||||
|
Loading…
Reference in New Issue
Block a user