From 23e974294689721507e7ac662c69fa02e818c33e Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Fri, 25 Nov 2022 17:33:51 +0800 Subject: [PATCH] feat: enhance associating metrics with traces by `refId` (#192) --- src/views/dashboard/configuration/Widget.vue | 2 +- .../widget/RelatedTraceOptions.vue | 22 ++++++-- src/views/dashboard/data.ts | 4 ++ src/views/dashboard/graphs/TopList.vue | 20 ++++++-- src/views/dashboard/related/trace/Header.vue | 50 ++++++++++++------- .../trace/components/D3Graph/SpanDetail.vue | 43 ++++++++++------ 6 files changed, 99 insertions(+), 42 deletions(-) diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index c09a4c40..43c35125 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -124,7 +124,7 @@ export default defineComponent({ const title = computed(() => encodeURIComponent(widget.value.title || "")); const tips = computed(() => encodeURIComponent(widget.value.tips || "")); const hasAssociate = computed(() => - ["Bar", "Line", "Area"].includes( + ["Bar", "Line", "Area", "TopList"].includes( dashboardStore.selectedGrid.graph && dashboardStore.selectedGrid.graph.type ) diff --git a/src/views/dashboard/configuration/widget/RelatedTraceOptions.vue b/src/views/dashboard/configuration/widget/RelatedTraceOptions.vue index 0905e741..ca30da05 100644 --- a/src/views/dashboard/configuration/widget/RelatedTraceOptions.vue +++ b/src/views/dashboard/configuration/widget/RelatedTraceOptions.vue @@ -13,7 +13,18 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->