done with trace handling of active filters and updating trace results

This commit is contained in:
Peter Olu 2022-05-12 00:20:59 +01:00
parent 075cc4f395
commit 2c0408e893

View File

@ -281,20 +281,29 @@ function handleActiveFilterState() {
case "traceId": case "traceId":
if (!traceId.value.length) return; if (!traceId.value.length) return;
traceStore.setActiveFilter(activeFilter.value); traceStore.setActiveFilter(activeFilter.value);
break break;
case "tags": case "tags":
if (!tagsList.value.length) return; if (!tagsList.value.length) return;
traceStore.setActiveFilter(activeFilter.value); traceStore.setActiveFilter(activeFilter.value);
break break;
case "duration": case "duration":
if (!minTraceDuration.value.length || !maxTraceDuration.value.length) if (!minTraceDuration.value.length || !maxTraceDuration.value.length)
return; return;
traceStore.setActiveFilter(activeFilter.value); traceStore.setActiveFilter(activeFilter.value);
break break;
case "service":
traceStore.setActiveFilter(activeFilter.value);
break;
case "instance":
traceStore.setActiveFilter(activeFilter.value);
break;
case "status":
traceStore.setActiveFilter(activeFilter.value);
break;
} }
} }
function searchTraces() { function searchTraces() {
handleActiveFilterState() handleActiveFilterState();
activeFilter.value = ""; activeFilter.value = "";
let endpoint = "", let endpoint = "",
instance = ""; instance = "";