mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 17:44:46 +00:00
fix: set filter ID when ReadRecords metric associates with trace (#247)
This commit is contained in:
parent
2491ab7176
commit
1d189e82a7
@ -64,7 +64,7 @@ limitations under the License. -->
|
|||||||
import copy from "@/utils/copy";
|
import copy from "@/utils/copy";
|
||||||
import { TextColors } from "@/views/dashboard/data";
|
import { TextColors } from "@/views/dashboard/data";
|
||||||
import Trace from "@/views/dashboard/related/trace/Index.vue";
|
import Trace from "@/views/dashboard/related/trace/Index.vue";
|
||||||
import { QueryOrders, Status, RefIdTypes } from "../data";
|
import { QueryOrders, Status, RefIdTypes, ProtocolTypes } from "../data";
|
||||||
/*global defineProps */
|
/*global defineProps */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
@ -77,6 +77,7 @@ limitations under the License. -->
|
|||||||
type: Object as PropType<{
|
type: Object as PropType<{
|
||||||
color: string;
|
color: string;
|
||||||
metrics: string[];
|
metrics: string[];
|
||||||
|
metricTypes: string[];
|
||||||
relatedTrace: any;
|
relatedTrace: any;
|
||||||
}>,
|
}>,
|
||||||
default: () => ({ color: "purple" }),
|
default: () => ({ color: "purple" }),
|
||||||
@ -112,6 +113,7 @@ limitations under the License. -->
|
|||||||
status: Status[2].value,
|
status: Status[2].value,
|
||||||
id: item.id || item.name,
|
id: item.id || item.name,
|
||||||
metricValue: [{ label: props.config.metrics[0], data: item.value, value: item.name }],
|
metricValue: [{ label: props.config.metrics[0], data: item.value, value: item.name }],
|
||||||
|
isReadRecords: props.config.metricTypes.includes(ProtocolTypes.ReadRecords) || undefined,
|
||||||
};
|
};
|
||||||
traceOptions.value = {
|
traceOptions.value = {
|
||||||
...traceOptions.value,
|
...traceOptions.value,
|
||||||
|
@ -144,6 +144,10 @@ limitations under the License. -->
|
|||||||
await queryTraces();
|
await queryTraces();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (filters.isReadRecords) {
|
||||||
|
await queryTraces();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (dashboardStore.entity === EntityType[1].value) {
|
if (dashboardStore.entity === EntityType[1].value) {
|
||||||
await getService();
|
await getService();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user