mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-01 19:03:40 +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 { TextColors } from "@/views/dashboard/data";
|
||||
import Trace from "@/views/dashboard/related/trace/Index.vue";
|
||||
import { QueryOrders, Status, RefIdTypes } from "../data";
|
||||
import { QueryOrders, Status, RefIdTypes, ProtocolTypes } from "../data";
|
||||
/*global defineProps */
|
||||
const props = defineProps({
|
||||
data: {
|
||||
@ -77,6 +77,7 @@ limitations under the License. -->
|
||||
type: Object as PropType<{
|
||||
color: string;
|
||||
metrics: string[];
|
||||
metricTypes: string[];
|
||||
relatedTrace: any;
|
||||
}>,
|
||||
default: () => ({ color: "purple" }),
|
||||
@ -112,6 +113,7 @@ limitations under the License. -->
|
||||
status: Status[2].value,
|
||||
id: item.id || 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,
|
||||
|
@ -144,6 +144,10 @@ limitations under the License. -->
|
||||
await queryTraces();
|
||||
return;
|
||||
}
|
||||
if (filters.isReadRecords) {
|
||||
await queryTraces();
|
||||
return;
|
||||
}
|
||||
if (dashboardStore.entity === EntityType[1].value) {
|
||||
await getService();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user