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